Fits the Rasch PCM model using eRm, and conducts a PCA of residuals to get eigenvalues using psych::pca() and reports the top 5 values. Proportion of explained variance is calculated using stats::prcomp().
Source: R/easyRasch.R
RIpcmPCA.RdNote from ?psych::pca:
The eigenvectors are rescaled by the sqrt of the eigenvalues to produce
the component loadings more typical in factor analysis.