R2VX,pcaRes-method | R Documentation |
Flexible calculation of R2 goodness of fit.
## S4 method for signature 'pcaRes'
R2VX(object, direction = c("variables",
"observations", "complete"), data = completeObs(object),
pcs = nP(object))
object |
a PCA model object |
direction |
choose between calculating R2 per variable, per observation or for the entire data with 'variables', 'observations' or 'complete'. |
data |
the data used to fit the model |
pcs |
the number of PCs to use to calculate R2 |
A vector with R2 values
Henning Redestig
R2VX(pca(iris))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.