我有一个相关矩阵,当我尝试使用“factanal”函数对其进行最大似然因子分析时,我得到以下错误:
factanal(covmat=matches_adjusted, factors=5, rotation=none, na.omit(matches_adjusted))
Warning in log(e) : NaNs produced
Error in optim(start, FAfn, FAgr, method = "L-BFGS-B", lower = lower, :
L-BFGS-B needs finite values of 'fn'
导致这种情况的原因是什么?