Learn R Programming

mogsa (version 1.6.4)

moaCoef: Extract the loadings/coefficients from an object of class moa-class.

Description

Extract the loadings/coefficients from an object of class moa-class.

Usage

moaCoef(moa)

Arguments

moa
An object of class moa-class.

Value

It returns a list consist of two components:coefMat - the loading matrixnonZeroCoef - 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 fromyy - 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.

See Also

moaScore

Examples

Run this code
# 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)

Run the code above in your browser using DataLab