楼主: yupeng0628
14158 9

[求助]各位高手如何用SPSS进行因果关系的检验 [推广有奖]

  • 1关注
  • 16粉丝

高级会员

已卖:2638份资源

讲师

92%

还不是VIP/贵宾

-

威望
0
论坛币
2231957 个
通用积分
0.8407
学术水平
29 点
热心指数
19 点
信用等级
23 点
经验
13964 点
帖子
508
精华
2
在线时间
294 小时
注册时间
2005-8-30
最后登录
2023-12-26

楼主
yupeng0628 发表于 2006-4-16 16:41:00 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
如何检验两个数据序列X、Y,是X引起Y还是Y引起X
二维码

扫码加我 拉你入群

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

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

关键词:因果关系 SPSS PSS 如何用 检验 SPSS 高手 因果关系

回帖推荐

hanszhu 发表于6楼  查看完整内容

以下是引用hanszhu在2006-5-16 13:12:00的发言:I'm looking for a step-by-step explanation on how to perform a Granger causality test using SPSS, Mathematica, Java or Perl. After writing it, I realised you probably needed more than that, so here goes.I will explain this in SPSS. Not everything can be done automatically, so you have to do a bit of work yourself. (That's the price you pay for using ...

本帖被以下文库推荐

沙发
model 发表于 2006-4-16 17:43:00
eviews可以做

藤椅
hanszhu 发表于 2006-5-16 13:12:00
I'm looking for a step-by-step explanation on how to perform a Granger causality test using SPSS, Mathematica, Java or Perl.

板凳
hanszhu 发表于 2006-5-16 13:13:00
This page contains some general Granger-information and a Granger causality test for SAS:

http://www.sas.com/rnd/app/examples/ets/granger/

If you're familiar with SAS then it's probably quite easy to port it to Mathematica. Help me do it!

报纸
hanszhu 发表于 2006-5-16 13:15:00
以下是引用hanszhu在2006-5-16 13:12:00的发言:
I'm looking for a step-by-step explanation on how to perform a Granger causality test using SPSS, Mathematica, Java or Perl.

Hello,
You need to understand 2 things to answer this:

First, you need to know what the Granger test is. Second, you need to know about the LAG function in SPSS. If you don't know how the Granger test works, request clarification, and I will tell you. (I have consulted Gujaratim D.N., 1995, Basic Econometrics, 3rd Ed. McGraw Hill, p620, to find out how to do the test.) The tricky part in SPSS is knowing about the LAG function. The lag of a variable is the score on the previous case in the dataset in SPSS,
so:

X lag(X)
3 6
6 7
7 2
2 [missing]

When you know this, the Granger test is straightforward. If that's not enough, request clarification, and I will add more.

Hope that helps,

地板
hanszhu 发表于 2006-5-16 13:18:00
以下是引用hanszhu在2006-5-16 13:12:00的发言:
I'm looking for a step-by-step explanation on how to perform a Granger causality test using SPSS, Mathematica, Java or Perl.

After writing it, I realised you probably needed more than that, so here goes.

I will explain this in SPSS. Not everything can be done automatically, so you have to do a bit of work yourself. (That's the price you pay for using SPSS, not SAS.)

Say your two variables that you want to test the direction of causality are called A and B. Create a variable which is the lag of A (let's call it LAG_A) and another which is the lag of B (let's call it LAG_B. In SPSS syntax:

Compute lag_A = lag(A).
Compute lag_B = lag(A).

Now run a regression analysis, where A is the DV, and lag_A is the IV. This is the unrestricted resgression. Look at the residual sum of squares from this analysis, and call this RSS_r.

Now run another regression analysis, where A is the DV, and lag_A and lag_B are the IVs - this is the unrestricted analysis. Look at the residual sum of squares from this analysis, and call it RSS_ur.

Now, you need to calculate F:

F=((RSS_r-RSS_ur)/m)/(RSS_ur/(n-k))

Where m is the number of lagged terms - currently 1, but we will come back to that. n is the number of cases in the analysis (careful, because you have lost one, because of the lag), and k is the number of parameters in the unrestricted regression (i.e. 2 in this case.)

This F is distributed with m, n-k df.

You can include more lagged terms - lag_2a = lag(lag(A)), for example. Hence m will increase. Always include both the A and B lagged terms in the equation. You can also include other covariates - include them in both analyses. When you have done that, do it all again backwards. If one is significant, you have unidirectional causality. If both are, you have bidirectional causality (or feedback), if neither are, you have independence. I hope all that makes sense - if not request clarification.

It could be done in Jave or Perl, but you would need to either write, or find, the algorithms to do the appropriate matrix algebra - and that might be another question. You would also need to know the algebra to do, and that's probably another question yet.

已有 1 人评分经验 论坛币 收起 理由
胖胖小龟宝 + 10 + 10 热心帮助其他会员

总评分: 经验 + 10  论坛币 + 10   查看全部评分

7
hanszhu 发表于 2006-5-16 13:19:00
以下是引用hanszhu在2006-5-16 13:12:00的发言:
I'm looking for a step-by-step explanation on how to perform a Granger causality test using SPSS, Mathematica, Java or Perl.

http://www.sas.com/rnd/app/examples/ets/granger/sas.htm

http://www.vision.net.au/~daly/granger.htm

http://www.tamu.edu/perc/0003.pdf

http://economics.rutgers.edu/gradprogram/Vita/RadckDiss.pdf

http://www.econ.keio.ac.jp/staff/seko/AsRES/vol_1.htm

8
梁小宝 发表于 2009-12-7 16:21:53
这个多高手发言,顶

9
wuxue0 发表于 2013-5-18 22:02:49
似乎很高深啊~理解最终死在了语言障碍上

10
ecologywu 发表于 2013-8-6 18:01:28
英文的 。

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

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-1-2 22:20