| moaCoef {mogsa} | R Documentation |
moa-class.
Extract the loadings/coefficients from an object of class moa-class.
moaCoef(moa)
moa |
An object of class |
It returns a list consist of two components:
coefMat - the loading matrix
nonZeroCoef - it is a list of data.frame to list the non-zero coefficient
variable in each of loading vectors and data sets. The element names are in a format as
"xxxx.yy.zzz"
xxxx - are the data names, tells the data set where a varirable is from
yy - the number of Axes, for example, "V1" indicate the variable has a non-zero coefficient in the first loading vector.
zzz - could be either "pos" (coefficient >0) or "neg" (coefficient < 0)
The data.frame has two columns, the first column is the ID of a variable the second
column is the coefficient/loading.
Chen Meng
# see examples in \code{\link{mbpca}}
data("NCI60_4arrays")
moa <- mbpca(NCI60_4arrays, ncomp = 10, k = "all", method = "globalScore", option = "lambda1",
center=TRUE, scale=FALSE)
genes <- moaCoef(moa)
scr <- moaScore(moa)