全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
9094 4
2006-05-17

我刚刚看一本下载的教材上说是这样写的

stepwise y x1 x2 x3 x4 fe(1.5),fs(1.5)

但是每次试都说是无效命令,请问各位高手那应该如何写才对?

在下非万分感谢!!

[此贴子已经被作者于2006-5-17 17:28:10编辑过]

二维码

扫码加我 拉你入群

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

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

全部回复
2006-5-17 18:22:00

这个语句一定有问题,在stata8里,做stepwise是用sw的(在stata9里又是stepwise了)

而且它后面要加command的,看你的语句是做panel data的回归的样子(fe——fixed effect?)

sw,好像不支持的。

sw cmd term [term ...] [weight] [if exp] [in range], { pr(#) | pe(#) | pr(#) pe(#) } [ forward
lr hier lockterm1 cmd_options ]

where term is either a varname or (varlist) (a varlist in parentheses) and cmd is one of

clogit | cloglog | cnreg | glm | logistic | logit | nbreg | ologit | oprobit | poisson | probit
| qreg | regress | stcox | streg | tobit

二维码

扫码加我 拉你入群

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

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

2006-5-17 18:55:00

fe是指变量选入模型的F统计量的临界值

不过不好意思,你贴的这段话我好像不太明白啊...

写成这样也不行:sw hp pop gdp income hspp eng hbs hss, ba fe(1.0)

ba 是后退筛选法(STATA8里是这样写的吗,不能确定啊)

能否麻烦请教你一下,应该改成怎样的?

谢谢!!

二维码

扫码加我 拉你入群

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

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

2006-5-17 19:22:00

这个语句试试

sw reg hp pop gdp income hspp eng hbs hss, ba fe(1.0)

二维码

扫码加我 拉你入群

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

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

2007-1-28 17:49:00
以下是引用solomon在2006-5-17 18:22:00的发言:

这个语句一定有问题,在stata8里,做stepwise是用sw的(在stata9里又是stepwise了)

而且它后面要加command的,看你的语句是做panel data的回归的样子(fe——fixed effect?)

sw,好像不支持的。

sw cmd term [term ...] [weight] [if exp] [in range], { pr(#) | pe(#) | pr(#) pe(#) } [ forward
lr hier lockterm1 cmd_options ]

where term is either a varname or (varlist) (a varlist in parentheses) and cmd is one of

clogit | cloglog | cnreg | glm | logistic | logit | nbreg | ologit | oprobit | poisson | probit
| qreg | regress | stcox | streg | tobit

面板数据可以作逐步回归吗?怎么作?谢谢。

二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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