全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
4583 2
2007-07-30

in my panel data analysis, i have two dummy variaibles (all basic 0-1type) in the independent variables along with a few other variables, i have no problem when i run; xtgls y x1 x2 x3 dummy1 dummy2, panels(he).

but when i want to add one more variable to find out the interaction between dummy1 and x2,

so i type: xtgls x1 x2 x3 dummy1 dummy1*x2 dummy2, panels(he),

but it does not work and it is said: variable dummy1*x2 not found
r(111);

can anybody tell me what is wrong with this?

thanks a lot

二维码

扫码加我 拉你入群

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

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

全部回复
2007-7-31 21:06:00

你需要新建一个变量,gen ab=a*b,然后以ab进入模型即可估计。

二维码

扫码加我 拉你入群

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

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

2007-8-1 00:09:00

thanks a lot, it works.

二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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