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 of the score vectors
R2"numeric", the individual R2 values
cvstat"numeric", cross-validation statistics
nObs"numeric", number of observations
nVar"numeric", number of variables
centered"logical", data was centered or not
center"numeric", the original variable centers
scaled"logical", data was scaled or not
scl"numeric", the original variable scales
varLimit"numeric", the exceeded variance limit
nPcs,nP"numeric", the number 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
network"nlpcaNet", the network used by non-linear PCA
Methods (not necessarily exhaustive)
- print
- Print function
summaryExtract information about PC relevance
screeplotPlot a barplot of standard deviations for PCs
slplotMake a side by side score and loadings plot
nPcsGet the number of PCs
nObsGet the number of observations
cvstatCross-validation statistics
nVarGet the number of variables
loadingsGet the loadings
scoresGet the scores
dimGet the dimensions (number of observations, number of
features)
centeredGet a logical indicating if centering was done as
part of the model
centerGet the averages of the original variables.
completeObsGet the imputed data set
methodGet a string naming the used PCA method
sDevGet the standard deviations of the PCs
scaledGet a logical indicating if scaling was done as
part of the model
sclGet the scales of the original variablesb
R2cumGet the cumulative R2