楼主: xjtuluo
5497 10

[一般统计问题] [求助]如何比较不同样本同一模型中的某一变量的影响大小 [推广有奖]

  • 1关注
  • 1粉丝

博士生

58%

还不是VIP/贵宾

-

威望
0
论坛币
318 个
通用积分
46.8758
学术水平
8 点
热心指数
14 点
信用等级
5 点
经验
7713 点
帖子
214
精华
0
在线时间
369 小时
注册时间
2007-11-9
最后登录
2022-8-9

楼主
xjtuluo 发表于 2009-5-19 11:10:00 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
<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编辑过]

二维码

扫码加我 拉你入群

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

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

关键词:一个因变量 同一样本 REG 因变量 一样本 因变量 自变量 模型 如何 样本

沙发
sugang 发表于 2009-5-19 11:29:00

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

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

板凳
xjtuluo 发表于 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!

已有 1 人评分论坛币 热心指数 收起 理由
SpencerMeng + 10 + 1 热心帮助其他会员

总评分: 论坛币 + 10  热心指数 + 1   查看全部评分

地板
sungmoo 发表于 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的系数相同”的原假设。

7
sungmoo 发表于 2009-5-19 22:44:00

 
g grp=1
foreach i of var x1-x3 grp{
g `i'a=`i'*(g==1)
g `i'b=`i'*(g==2)
}
reg y x1a-grpb, noc
test _b[x1a]=_b[x1b]

*或者采用上述方法(F检验)。

8
jianlamhua 发表于 2009-5-19 23:30:00
以下是引用sungmoo在2009-5-19 22:44:00的发言:

 
g grp=1
foreach i of var x1-x3 grp{
g `i'a=`i'*(g==1)
g `i'b=`i'*(g==2)
}
reg y x1a-grpb, noc
test _b[x1a]=_b[x1b]

*或者采用上述方法(F检验)。

为什么需要option“noc”呢?

9
sungmoo 发表于 2009-5-20 07:44:00
以下是引用jianlamhua在2009-5-19 23:30:00的发言:为什么需要option“noc”呢?

观察grpa与grpb的地位。

10
xjtuluo 发表于 2009-5-20 08:22:00

一个晚上就得到了这么多位高人的指点,非常感激!先谢谢各位了

我马上试一下,有问题再向大家咨询

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

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