楼主: lucici_j
5968 18

[面板数据求助] 面板数据 的稳健的hausman test ,陈强教材163页 [推广有奖]

11
weiwei_xmas 发表于 2013-5-13 16:09:43 |只看作者 |坛友微信交流群
蓝色 发表于 2012-1-15 21:21
stata一行就是一个命令,换行就是下一条命令了

. mdbeertax mdspircons mdunrate mdperinck, vce(cluste ...
请问一下 我执行的时候出现 x not found 是怎么回事呢

使用道具

12
wuchunxian999 发表于 2013-7-1 13:25:31 |只看作者 |坛友微信交流群
谢了现在可以了
一颗不沉淀的沙子

使用道具

13
rictan 发表于 2013-9-5 00:36:12 |只看作者 |坛友微信交流群
wuchunxian999 发表于 2013-7-1 13:25
谢了现在可以了
我用同样的程序运行出现下述错误,请问你也有过么?怎么解决的呢?


. scalar theta=e(theta)
type mismatch
r(109);



.
. foreach x of varlist $yandxforhausman{
  2.
.  by reporter: egen mean`x`=mean(`x`)
  3.
.               gen md`x`=`x`-mean`x`
  4.
.               gen red`x`=`x`-theta*mean`x`
  5.
.    }
` invalid name
r(198);



variable redrca3 not found
r(111);



mdprca_adj2 not found
r(111);

使用道具

14
蓝色 发表于 2013-9-5 01:06:40 |只看作者 |坛友微信交流群
我没有数据,我发尝试

使用道具

15
wuchunxian999 发表于 2013-9-5 23:12:42 |只看作者 |坛友微信交流群
wuchunxian999 发表于 2013-7-1 13:25
谢了现在可以了
时间有点长了,我记得是我把版主的程序复制后运行就行了,应该是中英文符号的事
一颗不沉淀的沙子

使用道具

16
aosky 发表于 2013-9-30 17:20:00 |只看作者 |坛友微信交流群
162页  豪斯曼检验  为什么出现这样的结果
hausman FE RE, constant sigmamore
hausman cannot be used with vce(robust), vce(cluster cvar), or p-weighted data
r(198);
看庭前花开花落

使用道具

受到警告 17
aosky 发表于 2013-9-30 17:35:55 |只看作者 |坛友微信交流群
提示: 受到警告  蓝色 违反论坛规定 2013-9-30 18:41
提示: 该帖被管理员或版主屏蔽  蓝色 违反论坛规定 2013-9-30 18:41
签名被屏蔽

使用道具

18
aosky 发表于 2013-9-30 20:19:23 |只看作者 |坛友微信交流群
蓝色 发表于 2013-9-5 01:06
我没有数据,我发尝试
. quietly xtreg fatal beertax spircons unrate perinck,re

. scalar theta=e(theta)

. global yandxforhausman fatal beertax spircons unrate perinck

. sort state

. foreach x of varlist $yandxforhausman{
  2. by state:egen mean `x'=mean(`x')
  3. gen md`x'=`x'-mean`x'
  4. gen red`x'=`x'-theta*mean`x'
  5. }
fatal already defined
r(110);

. quietly xtreg redfatal redbeertax redspircons redunrate redperinck mdbeertax mdspircons mdunrate mdperinck,vce (cluster state)
variable redfatal not found
r(111);

. test mdbeertax mdspircons mdunrate mdperinck
mdbeertax not found
r(111);


同样是陈强教材163页的问题      请赐教
看庭前花开花落

使用道具

19
aosky 发表于 2013-9-30 20:20:41 |只看作者 |坛友微信交流群
陈强教材170页   为什么会这样  谁能帮忙解决  谢过

. estimates store OLS AR1 PSAR1 HETONLY,b se
option b not allowed
r(198);
看庭前花开花落

使用道具

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

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

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

GMT+8, 2024-4-28 04:52