pev | R Documentation |
This function calculates the proportion of variance explained by not necessarily orthogonal principal components, using the optimal projected variance (optVar).
pev(x)
x |
a object of class |
The object x
is the output of sparsePCA
or
groupsparsePCA
. The variance of the not necessarily
orthogonal principal components in x
is calculated with the optimal projected variance definition
and is divided by the total variance of the data to get a proportion of
explained variance (pev).
The proportion of variance explained by each principal components.
M. Chavent, G. Chavent. Optimal Projected Variance Group-Sparse Block PCA. 2021. ⟨hal-03125264⟩
optVardim
, explainedVar
,
sparsePCA
, groupsparsePCA
,
data(protein) x <- sparsePCA(protein, 2, c(0.5,0.5)) pev(x) x <- groupsparsePCA(protein, 2, index=1:ncol(protein), c(0.5,0.5)) pev(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.