I'm using the pcaPP package in R and i have the following code:
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))))
pc <- PCAproj(x)
This is the 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.
My question is how can I return the other outputs of PCAproj like sdev and then report those in R-studio?