cpve {epca} | R Documentation |
Cumulative Proportion of Variance Explained (CPVE)
Description
Calculate the CPVE.
Usage
cpve(x, v, is.cov = FALSE)
Arguments
x |
|
v |
|
is.cov |
|
Value
a numeric
vector of length ncol(v)
, the i-th value is the CPVE of the first i columns in v
.
See Also
Examples
## 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)
[Package epca version 1.1.0 Index]