SPC | R Documentation |
The sparse principal component can obtain sparse solutions of the eigenmatrix to better explain the relationship between principal components and original variables.
SPC(data, m, gamma)
data |
is a highly correlated data set |
m |
is the number of principal component |
gamma |
is a sparse parameter |
As,Ds
require(elasticnet)
SPC(data=PSA,m=3,gamma=0.03)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.