楼主: panxinfeng
8408 18

[问答] 求助:R因子分析结果与SAS和SPSS差异明显 [推广有奖]

11
panxinfeng 发表于 2014-7-24 18:01:33 |只看作者 |坛友微信交流群
yunmenghuang 发表于 2014-7-24 11:26
楼主,用R做分析时你是调用什么包?还是R中自带的。我用factanal函数总是出现如下问题,能否帮忙解答,不胜 ...
可能是你的数据框X的问题,这个数据框应该是只包含你需要做因子分析的变量(只能是数值项)

使用道具

12
yunmenghuang 发表于 2014-7-25 11:02:19 |只看作者 |坛友微信交流群
panxinfeng 发表于 2014-7-24 18:01
可能是你的数据框X的问题,这个数据框应该是只包含你需要做因子分析的变量(只能是数值项)
好的,谢谢啦。就是那一点小问题

使用道具

13
jacky陈2183 在职认证  学生认证  发表于 2014-7-29 11:40:37 |只看作者 |坛友微信交流群
多谢,学习了。

使用道具

14
lsc989818 在职认证  发表于 2014-12-27 14:35:10 |只看作者 |坛友微信交流群
有同样的问题,帮顶。我做出来的答案如下,是不是可以这样理解:按照spss的提示,这个分析的方法有些问题。
对于fa函数在R中计算结果不一致的原因,R本身在批注里面已经有一些解释了:

----------------------------------------------------------------------------------------------------------------------------------------------------
Test cases comparing the output to SPSS suggest that the PA algorithm matches what SPSS calls uls, and that the wls solutions are equivalent in their fits. The wls and gls solutions have slightly larger eigen values, but slightly worse fits of the off diagonal residuals than do the minres or maximum likelihood solutions. Comparing the results to the examples in Harman (76), the PA solution with no iterations matches what Harman calls Principal Axes (as does SAS), while the iterated PA solution matches his minres solution. The minres solution found in psych tends to have slightly smaller off diagonal residuals (as it should) than does the iterated PA solution.
----------------------------------------------------------------------------------------------------------------------------------------------------
SPSS will sometimes use a Kaiser normalization before rotating. This will lead to different solutions than reported here. To get the Kaiser normalized loadings, use kaiser.
========SPSS计算的结果=====================

-----------------------------------------------------------

-----------------------------------------------------------


============*以下是R  psych包的计算结果====================
fa(m1, nfactors = 3)$loadingsIn fa, too many factors requested for this number of
variables to use SMC for communality estimates, 1s are used insteadLoadings:   MR1    MR2    MR3   v1  0.985              v2  0.953              v3                0.998v4                0.865v5         0.903       v6         1.023                        MR1   MR2   MR3SS loadings    1.880 1.869 1.759Proportion Var 0.313 0.312 0.293Cumulative Var 0.313 0.625 0.918
===============================================================

有一个问题:R语言psych包计算出来的既然与SPSS与SAS都不一样,那这个结果(R)的准确性如何?该如何理解?

使用道具

15
lsc989818 在职认证  发表于 2014-12-28 14:23:33 |只看作者 |坛友微信交流群
lsc989818 发表于 2014-12-27 14:35
有同样的问题,帮顶。我做出来的答案如下,是不是可以这样理解:按照spss的提示,这个分析的方法有些问题。 ...
从spss里面粘贴过来的图片都丢了,从R里面copy的数据,格式对乱了......人大经济论坛的网站也真是醉了

使用道具

16
bilibiliboom 发表于 2015-6-6 16:21:58 |只看作者 |坛友微信交流群
yunmenghuang 发表于 2014-7-24 11:26
楼主,用R做分析时你是调用什么包?还是R中自带的。我用factanal函数总是出现如下问题,能否帮忙解答,不胜 ...
我也遇到这个问题了。你解决了嘛?是什么原因?

使用道具

17
ffen_71 发表于 2015-8-23 18:20:52 |只看作者 |坛友微信交流群
spss和sas计算的结果与R使用主成分法计算结果一致。

使用道具

18
ffen_71 发表于 2015-8-23 18:21:48 |只看作者 |坛友微信交流群
psych包中的principal

使用道具

19
万木青 发表于 2018-7-18 22:35:09 |只看作者 |坛友微信交流群
遇到同样问题,群主是否得到最终的证实?R的准确性是否不如Spss?还是这种差异是可接受范围内?

使用道具

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

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-5-21 23:32