moaCoef {mogsa} | R Documentation

## 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 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.

### Author(s)

Chen Meng

### See Also

`moaScore`

### Examples

    # 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)

[Package mogsa version 1.24.0 Index]