全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
5205 4
2009-04-02

RT

小弟需要检验两个回归模型中的没个变量的系数是否相同

用test命令,test [eqno=eqno[=...]] [: varlist]  这里的eqno是自己设置的吗?如果是的话在前面估计完如何命名估计出的方程?

请教各位大虾~

二维码

扫码加我 拉你入群

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

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

全部回复
2009-4-3 07:22:00

Examples after multiple-equation estimation commands

    Setup
        . sysuse auto
        . sureg (price foreign mpg displ) (weight foreign length)

    Test significance of foreign in the price equation
        . test [price]foreign

    Test that foreign is jointly 0 in both equations
        . test [price]foreign [weight]foreign

    Shorthand for the previous test command
        . test foreign

    Test a cross-equation constraint
        . test [price]foreign = [weight]foreign

    Alternative syntax for the previous test
        . test [price=weight]: foreign

    Test all coefficients except the intercept in an equation
        . test [price]

    Test that foreign and displ are jointly 0 in the price equation
        . test [price]: foreign displ

    Test that the coefficients on variables that are common to both equations are jointly 0
        . test [price=weight], common

    Simultaneous test of multiple constraints
        . test ([price]: foreign) ([weight]: foreign)

二维码

扫码加我 拉你入群

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

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

2009-4-3 07:29:00
你最好下载stata的手册,上面介绍的详细。
二维码

扫码加我 拉你入群

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

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

2009-4-4 22:21:00

[求助]Stata中如何命名已估计的模型方程

如果我原来的模型需要用xtgls估计的呢?

如:

回归方程1: Y=a*x1+b*x2+c*x3   需用:xtgls y x1 x2 x3,noconstant i(label) panels(correlated)

回归方程2: Y=a*x1+b*x2+d*x4   需用:xtgls y x1 x2 x4,noconstant i(label) panels(correlated)

如果用sureg,回归结果跟我原来的结果不一样,而且我两个方程用的样本不一样,有一个变量不一样,那怎么办呢?

请教大虾~

二维码

扫码加我 拉你入群

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

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

2013-3-28 15:48:18
horizonpan 发表于 2009-4-4 22:21
如果我原来的模型需要用xtgls估计的呢?如:回归方程1: Y=a*x1+b*x2+c*x3   需用:xtgls y x1 x ...
打扰了,请问:你用的什么命令完成检验的?多谢~~~
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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