cpve | R Documentation |
Calculate the CPVE.
cpve(x, v, is.cov = FALSE)
x |
|
v |
|
is.cov |
|
a numeric
vector of length ncol(v)
, the i-th value is the CPVE of the first i columns in v
.
pve
## use the "swiss" data
## find two sparse PCs
s.sca <- sca(swiss, 2, gamma = sqrt(ncol(swiss)))
ld <- loadings(s.sca)
cpve(as.matrix(swiss), ld)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.