Description Usage Arguments Value Examples
major idea/code originally by Niek. Thanks sir. Provides the lasso penalty values, given the number of zeros in the PCA coefficients matrix
1 2 |
dat |
dataset |
zeros |
vector: number of zeros wanted per component |
R |
number of components |
whichfunction |
choice between "spca_adj" or "rsvd_spca": which function do you want? |
init |
initial values for the lasso penalties |
ridge |
ridge penalty. default 1e-6 |
maxiterOut |
maximum iteration for all |
maxiterIn |
maximum iteration within one component |
lasso, converged
1 | hi
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.