在通过R进行因子分析后,我得到了结果。
PCAVar <- principal(Corr, nfactors=7, rotate="varimax")
以下是我可以获得的所有对象:
names(PCAVar)
[1] "values" "rotation" "n.obs" "communality" "loadings" "fit" "fit.off"
[8] "fn" "Call" "uniquenesses" "complexity" "chi" "EPVAL" "R2"
[15] "objective" "residual" "rms" "factors" "dof" "null.dof" "null.model"
[22] "criteria" "PVAL" "weights" "r.scores" "rot.mat" "Structure"
我想在分类中使用这些因素。但是,我不知道如何将因子加载到我的训练数据集中。