楼主: nkcaicaizi
7133 8

stata能处理双向随机效应模型吗? [推广有奖]

  • 0关注
  • 0粉丝

已卖:1份资源

硕士生

90%

还不是VIP/贵宾

-

威望
0
论坛币
7131 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
917 点
帖子
46
精华
0
在线时间
313 小时
注册时间
2007-3-11
最后登录
2011-5-29

楼主
nkcaicaizi 发表于 2009-7-25 08:05:21 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
最近在做跨国数据时发现hausman检验得出随机效应,我想问下stata有没有命令能做双向随机效应的模型?
二维码

扫码加我 拉你入群

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

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

关键词:随机效应模型 Stata 随机效应 tata Hausman检验 模型 Stata 效应 随机

沙发
kollenfree 发表于 2009-7-25 09:29:08
stata没有相关命令直接作双效应模型。参见Baum的An introduction to modern econometrics using stata 224页,有这么一段话。
Stata lacks a command to automatically fit two-way FE models. If the number of periods is reasonably small, we can fit a tow-way FE model by creating a set of time indicator variables and including all but one in the regression. the joint test that all the coefficients on those indicator variables are zero will be a test of the significance of time FE.

藤椅
fixedstar 发表于 2009-7-26 00:03:14
不会吧,很容易实现啊
假定时间是year
直接输入
xi: y x i.year,fe r
就是一个双向的面板固定效应回归啊,同理随机效应也一样


quote]kollenfree 发表于 2009-7-25 09:29
stata没有相关命令直接作双效应模型。参见Baum的An introduction to modern econometrics using stata 224页,有这么一段话。
Stata lacks a command to automatically fit two-way FE models. If the number of periods is reasonably small, we can fit a tow-way FE model by creating a set of time indicator variables and including all but one in the regression. the joint test that all the coefficients on those indicator variables are zero will be a test of the significance of time FE.

板凳
wanli 发表于 2009-7-26 06:30:52
two-way random effects i use xtmixed.

报纸
nkcaicaizi 发表于 2009-7-26 16:37:14
多谢几位热心解答

地板
kollenfree 发表于 2009-7-27 20:54:41
3楼的做法同我的回答并没有矛盾,xi: i.year恰好就是我所说的时间虚拟变量。不过感觉命令应该是xi: xtreg y x i.year, fe。另外也可以自己生成虚拟变量ta(year), gen(yr),然后 xtreg y x yr*, fe。还有其他一些方法做,但思想都是一样的。

7
rucggyyqq 发表于 2010-6-1 09:02:06
3楼错了,用这个命令只能得到时间固定效应,无法得出时间随机效应。

8
rucggyyqq 发表于 2010-6-1 09:07:31
期待有高手解决时间随机效应的stata实现命令!

9
ugduugdu 发表于 2017-6-12 20:06:36
eviews可以做

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

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-29 21:15