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
nPcs
Get the number of PCs
nObs
Get the number of observations
nVar
Get the number of variables
loadings
Get the loadings
scores
Get the scores
dim
Get the dimensions (number of observations, number of features)
centered
Get a logical indicating if centering was done as part of the model
completeObs
Get the imputed data set
method
Get a string naming the used PCA method
sDev
Get the standard deviations of the PCs

[Package pcaMethods version 1.22.0 Index]