In R programming language and package pcaPP I have this code:
# multivariate data with outliers
library(mvtnorm)
library(pcaPP)
x <- rbind(rmvnorm(200, rep(0, 6), diag(c(5, rep(1,5)))),
rmvnorm( 15, c(0, rep(20, 5)), diag(rep(1, 6))))
# Here we calculate the principal components with PCAgrid
pc <- PCAproj(x)
Here is documentation for the output value of the PCAproj function:
The function returns a list of class '"princomp"', i.e. a list similar to the output of the function 'princomp'. sdev: the (robust) standard deviations of the principal components. loadings: the matrix of variable loadings (i.e., a matrix whose columns contain the eigen- vectors). This is of class "loadings": see loadings for its print method. center: the means that were subtracted. scale: the scalings applied to each variable. n.obs: the number of observations. scores: if 'scores = TRUE', the scores of the supplied data on the principal components. call: the matched call.
How can I call other outputs of PCAproj like loadings and sdev and report those in R-studio?
pcby doingstr(pc)