pcaRes {pcaMethods}R Documentation

Class for representing a PCA result

Description

This is a class representation of a PCA result

Creating Objects

new("pcaRes", scores=[the scores], loadings=[the loadings], nPcs=[amount of PCs], R2cum=[cumulative R2], nObs=[amount of observations], nVar=[amount of variables], R2=[R2 for each individual PC], sDev=[stdev for each individual PC], centered=[was data centered], center=[original means], varLimit=[what variance limit was exceeded], method=[method used to calculate PCA], missing=[amount of NAs], completeObs=[estimated complete observations])

Slots

scores
"matrix", the calculated scores
loadings
"matrix", the calculated loadings
R2cum
"numeric", the cumulative R2 values
sDev
"numeric", the individual standard deviations
R2
"numeric", the individual R2 values
nObs
"numeric", amount of observations
nVar
"numeric", amount of variables
centered
"logical", data was centered or not
center
"numeric", the original variable centers
varLimit
"numeric", the exceeded variance limit
nPcs
"numeric", the amount of calculated PCs
method
"character", the method used to perform PCA
missing
"numeric", the total amount of missing values in original data
completeObs
"matrix", the estimated complete observations

Methods

print
Print function
summary
Extract information about PC relevance
screeplot
Plot a barplot of standard deviations for PCs
slplot
Make a side by side score and loadings plot
biplot
Make a scores / loadings biplot

[Package pcaMethods version 1.14.0 Index]