楼主: Intelligencey
4026 0

[学习分享] R语言做因子分析 [推广有奖]

  • 4关注
  • 1粉丝

已卖:696份资源

博士生

44%

还不是VIP/贵宾

-

威望
0
论坛币
2443 个
通用积分
34.7638
学术水平
0 点
热心指数
5 点
信用等级
1 点
经验
12200 点
帖子
177
精华
0
在线时间
275 小时
注册时间
2016-8-6
最后登录
2025-10-10

楼主
Intelligencey 发表于 2019-5-7 22:37:54 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
大家使用R语言做因子分析时,相信很多人是采用《R语言实战》上面的代码使用fa.parallel和fa这两个函数,但是fa.parallel这个函数经常输出警告:“The estimated weights for the factor scores are probably incorrect.  Try a different factor extraction method.”我今天在做因子分析的时候将这个警告输出的代码定位在fa.stats这个函数里面
R2 <- diag(t(w) %*% f)
    if (is.null(fm)) {
        if (prod(R2) < 0) {
            message("In factor.stats: The factor scoring weights matrix is probably singular -- Factor score estimate results are likely incorrect.\\n Try a different factor extraction method\\n")
            R2[abs(R2) > 1] <- NA
            R2[R2 <= 0] <- NA
        }
        if ((max(R2, na.rm = TRUE) > (1 + .Machine$double.eps))) {
            message("The estimated weights for the factor scores are probably incorrect.  Try a different factor extraction method.")
解决这个问题的方法也很简单,我们只要尝试其他的抽取因子的方法即可:
fm参数介绍:
Factoring method fm="minres" will do a minimum residual as will fm="uls". Both of these use a first derivative. fm="ols" differs very slightly from "minres" in that it minimizes the entire residual matrix using an OLS procedure but uses the empirical first derivative. This will be slower. fm="wls" will do a weighted least squares (WLS) solution, fm="gls" does a generalized weighted least squares (GLS), fm="pa" will do the principal factor solution, fm="ml" will do a maximum likelihood factor analysis. fm="minchi" will minimize the sample size weighted chi square when treating pairwise correlations with different number of subjects per pair. fm ="minrank" will do a minimum rank factor analysis. "old.min" will do minimal residual the way it was done prior to April, 2017 (see discussion below). fm="alpha" will do alpha factor analysis as described in Kaiser and Coffey (1965)
尝试其他的方法,直到警告消失为止。




二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:因子分析 R语言 Extraction Different estimated

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-23 04:25