我尝试使用polycor包中的hector函数和我在此处找到的说明对一组80个二分变量(1440个案例)进行因子分析:http://researchsupport.unt.edu/class/Jon/Benchmarks/BinaryFA_L_JDS_Sep2014.pdf
可悲的是,在我从其余的数据集中选择感兴趣的变量并对它们运行因子分析后,我似乎始终得到以下错误和警告
Error in optim(0, f, control = control, hessian = TRUE, method = "BFGS") :
non-finite finite-difference value [1]
In addition: Warning messages:
1: In log(P) : NaNs produced
2: In log(P) : NaNs produced
这是命令/当我点击上述PDF中描述的步骤时:
testMat <- hetcor(data)$cor
不知道这意味着什么或如何继续......您的想法值得赞赏。谢谢!