nipalsSoftK: NIPALS algorithm with soft thresholding operator

Description Usage Arguments Value Author(s) See Also

View source: R/nipalsSoftK.R

Description

An internal function called by mbpca.

Usage

1
nipalsSoftK(x, maxiter, k)

Arguments

x

The input matrix, rows are observations, columns are variables

maxiter

# of maximum interation the algorithm can run

k

The number (>=1) or proportion (<1) of variables want to keep. It could be a single value or a vector has the same length as x so the sparsity of individual matrix could be different.

Value

an list object contains the following elements:

tb - the block scores

pb - the block loadings

t - the global scores

w - the wegihts of block scores to construct the global score.

Author(s)

Chen Meng

See Also

msvd


mengchen18/mogsa documentation built on Nov. 23, 2017, 1:57 a.m.