简体   繁体   English

R中的因素分析,误差

[英]Factor Analysis in R, Error

I have typed the following command in R 我在R中键入了以下命令

factanal(TD, factor = 10, rotation = "varimax", scores = "regression")

where TD is my data frame containing 41 variables TD是我的包含41个变量的数据框

I am getting the following error 我收到以下错误

Error in factanal(TD, factor = 10, rotation = "varimax", scores = "regression") : unable to optimize from this starting value 实际误差(TD,因子= 10,旋转=“ varimax”,分数=“回归”):无法从该起始值进行优化

Can someone help me with this error. 有人可以帮我解决这个错误。

I have had the same problem, I found that adding the control argument "lower", which specifies the lower bound for uniqueness (default = 0.005), helps! 我遇到了同样的问题,我发现添加控制参数“ lower”(指定唯一性的下限)(默认值= 0.005)会有所帮助!

For my problem a value of 0.00000001 gave results. 对于我的问题,值0.00000001给出了结果。 Afterwards, it turned out that I had some variables with very low values of uniqueness. 之后,事实证明我有一些变量的唯一性值很低。 So it might be that you have created 4 dummies from a factor with 4 levels, thereby creating redundancy. 因此,可能是您从具有4个级别的因子中创建了4个虚拟变量,从而创建了冗余。

So my tips: 1. Play with the lower argument 2. once it works, check which variables have a very low uniqueness, take them out of the dataframe & run the factor analysis again 因此,我的提示是:1.使用较低的参数2.起作用后,检查哪些变量的唯一性很低,将其从数据框中删除并再次运行因子分析

There is a "start" option in factanal like this: 实际上,有一个“开始”选项,如下所示:

factanal(TD,factor=10,rotation="varimax",scores="regression",start=rep(0,41))

But without your data/detailed output can't tell what exactly the problem is. 但是,如果没有数据/详细的输出,您将无法确定问题出在哪里。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM