全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
5411 10
2009-05-19
<p>例如:</p><p>样本1:reg Y   X1   X2  X3</p><p>样本2:reg Y   X1   X2  X3</p><p>请问:如果比较变量X1对样本1和样本2的影响是否具有显著差异?能否直接比较X1系数的大小来判断?</p><p>那如果是同一样本,相同的自变量,但不同的因变量呢?</p><p>例如:reg Y1   X1   X2  X3;    reg Y2   X1   X2  X3     如果比较X1对哪一个因变量(Y1 or Y2)的影响更大?</p><p></p><p>谢谢各位高位指点!</p>

[此贴子已经被作者于2009-5-19 20:06:12编辑过]

二维码

扫码加我 拉你入群

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

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

全部回复
2009-5-19 11:29:00

不能,还不如先计算X1的系数/(x1+x2+x3的系数),再比较大小了

二维码

扫码加我 拉你入群

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

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

2009-5-19 11:48:00
不能吗?那是不是得用哑变量,把两个样本整合到一起去比较?从哑变量的系数和符号来判断?
二维码

扫码加我 拉你入群

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

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

2009-5-19 20:08:00
怎么没高人指点呀? 小弟虚心求助! 请高人不吝赐教
二维码

扫码加我 拉你入群

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

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

2009-5-19 20:58:00

1.      First we conduct the two regression analyses, one using the data from sample 1, the other using the data from sample 2.  Here are a sample of the basic statistics:

Group

Intercept

Slope

SEslope

SSE

SDX

n

Sample 1

a1

b1

c1

d1

e1

f1

Sample 2

a2

b2

c2

d2

e2

f2

 

2.      The test statistic is Student’s t, computed as the difference between the two slopes divided by the standard error of the difference between the slopes, that is, t=(b1-b2)/SE* with (f1+f2 – 4) degrees of freedom, where  the standard error of the difference between the two slopes is most easily computed as

SE*=SQRT(d1+d2) 

 

* Please note that the test on slopes uses a pooled error term.  If the variance in the dependent are unequal, you should use  alternative methods.  See Kleinbaum & Kupper (1978, Applied Regression Analysis and Other Multivariable Methods, Boston:  Duxbury, pages 101 & 102) for a large (each sample n > 25) samples test, and Kleinbaum & Kupper page 192 for a reference on other alternatives to pooling.

 

Hope it's helpful!

二维码

扫码加我 拉你入群

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

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

2009-5-19 21:32:00

  
reg y x1 x2 x3 if g==1
est sto a
reg y x1 x2 x3 if g==2
est sto b
suest a b
test [a_mean]x1=[b_mean]x1

*设样本有两组(g==1与g==2)。若后面显示的p值小于某一预定水平,则拒绝“两组样本的x1的系数相同”的原假设。

二维码

扫码加我 拉你入群

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

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

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群