请选择 进入手机版 | 继续访问电脑版
楼主: tangbaoqing
36546 38

[数据管理求助] 在stata软件里面运用因子分析方法计算综合得分   [推广有奖]

  • 1关注
  • 4粉丝

讲师

2%

还不是VIP/贵宾

-

威望
0
论坛币
188948 个
通用积分
6.4359
学术水平
0 点
热心指数
1 点
信用等级
0 点
经验
2497 点
帖子
205
精华
0
在线时间
452 小时
注册时间
2006-8-24
最后登录
2024-3-25

tangbaoqing 发表于 2014-11-7 15:29:26 |显示全部楼层 |坛友微信交流群
5000论坛币
请问有谁会在stata环境下运用因子分析方法计算综合得分?例如,我现在有10个表示市场化程度的指标,我想用因子分析法计算这10个指标的综合得分,从而得到一个反映市场化程度的综合指标。如果能使用主成分分析法也可以。请告诉我具体的命令和步骤,多谢!

最佳答案

夏虫可以语冰 查看完整内容

stata可以进行这样的解析 程序先是factor var1-var10,pcf(var1-var10表示着10个指标的变量)运行得到此结果 Factor analysis/correlation Number of obs = 9 Method: principal-component factors Retained factors = 2 Rotation: (unrotated) Number of params = 11 -------------------------------------------------------------- ...
关键词:stata软件 Stata 综合得分 分析方法 tata 因子分析
stata可以进行这样的解析
程序先是factor var1-var10,pcf(var1-var10表示着10个指标的变量)运行得到此结果

Factor analysis/correlation                        Number of obs    =        9
Method: principal-component factors            Retained factors =        2
Rotation: (unrotated)                          Number of params =       11
--------------------------------------------------------------------------
Factor     Eigenvalue   Difference        Proportion   Cumulative
-------------+------------------------------------------------------------
Factor1        4.62365      3.45469            0.7706       0.7706
Factor2        1.16896      1.05664            0.1948       0.9654
Factor3        0.11232      0.05395            0.0187       0.9842
Factor4        0.05837      0.02174            0.0097       0.9939
Factor5        0.03663      0.03657            0.0061       1.0000
Factor6        0.00006            .            0.0000       1.0000
--------------------------------------------------------------------------
LR test: independent vs. saturated:  chi2(15) =  100.49 Prob>chi2 = 0.0000
Factor loadings (pattern matrix) and unique variances
-------------------------------------------------
Variable   Factor1   Factor2    Uniqueness
-------------+--------------------+--------------
rings        0.9792    0.0772       0.0353  
logdsun    0.6710   -0.7109       0.0443  
lograd        0.9229    0.3736       0.0088  
logmoons  0.9765    0.0003       0.0465  
logmass     0.8338    0.5446       0.0082  
logdense    -0.8451    0.4705       0.0644  
-------------------------------------------------
会发现有俩个因子的特征值大于1,由这俩个因子代表变量
然后再进行rotate矩阵旋转

Factor analysis/correlation                        Number of obs    =        9
Method: principal-component factors            Retained factors =        2
Rotation: orthogonal varimax (Kaiser off)      Number of params =       11
--------------------------------------------------------------------------
Factor       Variance   Difference        Proportion   Cumulative
-------------+------------------------------------------------------------
Factor1        3.36900      0.94539            0.5615       0.5615
Factor2        2.42361            .            0.4039       0.9654
--------------------------------------------------------------------------
LR test: independent vs. saturated:  chi2(15) =  100.49 Prob>chi2 = 0.0000
Rotated factor loadings (pattern matrix) and unique variances
-------------------------------------------------
Variable   Factor1   Factor2    Uniqueness
-------------+--------------------+--------------
rings    0.8279    0.5285       0.0353  
logdsun    0.1071    0.9717       0.0443  
lograd    0.9616    0.2580       0.0088  
logmoons    0.7794    0.5882       0.0465  
logmass    0.9936    0.0678       0.0082  
logdense   -0.3909   -0.8848       0.0644  
-------------------------------------------------
Factor rotation matrix
--------------------------------
Factor1  Factor2
-------------+------------------
Factor1   0.7980         
Factor2   0.6026  -0.7980
--------------------------------
最后进行Predict f1 f2这俩个因子得分便会在表dta文件中体现出来,然后综合得分f=a*f1+b*f2
a,b分别是因子所占权重

已有 2 人评分论坛币 学术水平 热心指数 信用等级 收起 理由
海底鱼huo + 5 + 1 + 1 + 1 精彩帖子
admin_kefu + 40 热心帮助其他会员

总评分: 论坛币 + 45  学术水平 + 1  热心指数 + 1  信用等级 + 1   查看全部评分

幸运总垂青

使用道具

june_zchang 发表于 2014-11-7 16:07:04 |显示全部楼层 |坛友微信交流群
用spss做因子分析更简单些。买本书按照书上写的步骤录入点击即可。

使用道具

tangbaoqing 发表于 2014-11-7 16:35:16 |显示全部楼层 |坛友微信交流群
谢谢你的回复。spss可以批量处理吗?如果不能批量处理的话,那我要重复做几百次,因为要算31个省的20年数据,也就是要重复做620次,那样太麻烦了。stata可以快速处理这类重复性的工作。

使用道具

王教授卐 学生认证  发表于 2016-9-12 18:39:24 |显示全部楼层 |坛友微信交流群
学习了!

使用道具

学习了!

使用道具

学习了!

使用道具

qiannongdong 发表于 2016-11-28 09:44:57 |显示全部楼层 |坛友微信交流群
夏虫可以语冰 发表于 2014-11-7 15:29
stata可以进行这样的解析
程序先是factor var1-var10,pcf(var1-var10表示着10个指标的变量)运行得到此结 ...
请问最后的综合得分是什么意思呢?我最后想得出变量之间的一个确切关系式的,不知道要怎么操作呢?

使用道具

lpc_neu 发表于 2017-5-5 21:16:23 |显示全部楼层 |坛友微信交流群
夏虫可以语冰 发表于 2014-11-7 15:29
stata可以进行这样的解析
程序先是factor var1-var10,pcf(var1-var10表示着10个指标的变量)运行得到此结 ...
那请问权重a、b怎么看呢?

使用道具

靖江孟非 发表于 2017-5-26 09:19:17 |显示全部楼层 |坛友微信交流群
lpc_neu 发表于 2017-5-5 21:16
那请问权重a、b怎么看呢?
可以考虑使用方差贡献率吧,a=f1的方差贡献率,b=f2的方差贡献率;综合得分score=(a*f1+b*f2)/(a+b)

使用道具

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

本版微信群
加好友,备注jltj
拉您入交流群

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

GMT+8, 2024-4-19 10:14