全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
5110 1
2010-02-06
请问各位高手,在用stata中的stepwise做完后,最终的最优方程中是不是每个自变量t统计量都应是显著的?为什么我做的最优方程包括了一个t统计量很不显著的变量,是否可以手动去掉该变量?
二维码

扫码加我 拉你入群

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

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

全部回复
2010-2-9 11:57:18
help stepwise
    pr(#) specifies the significance level for removal from the model; terms
        with p>=pr() are eligible for removal.

    pe(#) specifies the significance level for addition to the model; terms
        with p<pe() are eligible for addition.


看帮助文档是王道啊

stepwise selection里面,一个重要的参数是选取变量的显著水平;For backward-stepwise method, the variable will be dropped if its p-value >= pr() (here it is 0.4); for forward-stepwise method, the variable will be added if its p-value <= pe() (here it is 0.4)

stepwise, pr(.4) lockterm1: regress mpg (weight weight2) displ gear
            turn headroom foreign price

stepwise, pe(.2) lockterm1: regress mpg (weight weight2) displ gear
            turn headroom foreign price



你自己的model里面,如果你选取的pr 或者 pe 值 不是 你的 critical p-value (例如0.05), 最后留下来/进入模型的变量,有不显著的,就很正常了。

1# youyou4235
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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