用R做因子分析,可以用factanal()函数,其参数factors用于指定因子个数,要提高累计方差,可以尝试指定多个因子,函数会自动检验合适的因子个数,并给出相应的累计方差。
>factanal(data, factors=2, rotation = "varimax" )
注意返回结果中红色的部分
#Uniquenesses:
#略
#Loadings:
# Factor1 Factor2
#A1 0.415 0.744
#A2 0.688 0.538
#略
#A7 0.824 0.407
# Factor1 Factor2
#SS loadings 3.453 2.234
#Proportion Var 0.493 0.319
#Cumulative Var 0.493 0.812
#Test of the hypothesis that 2 factors are sufficient.
#The chi square statistic is 14.09 on 8 degrees of freedom.
#The p-value is 0.0794
|