全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
8150 5
2008-12-26

请问各位高手,在运行stata 的时候,如何检验自变量和因变量的相关系数β=0?其中自变量是十年以来公司的各种数据,因变量是十年以来公司的总收益,谢谢大家了~~~~~~~~~~~~~~

即,如何运行

H0:β=0, H1: β ≠0, 命令是什么??多谢大家了

 

二维码

扫码加我 拉你入群

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

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

全部回复
2008-12-26 10:39:00


Examples:  after single-equation estimation except anova

        . regress y age female educ region1 region2 region3 region4

        . test region1 = region2 = region3

        . test region4 = (region1+region2)/2

        . test (region1 = region2) (region3 = region4)

        . test educ=.1

        . test region1 region2 region3 region4, mtest

        . testparm region*

    In the above example, you may substitute any single-equation estimation command (such as clogit,
    logistic, logit, ologit, etc.) for regress.


Examples:  after multiple-equation estimation commands

    using mvreg as an example
        . mvreg y1 y2 y3: x1 x3 x3 site1-site3

    test y1 coefs = 0
        . test [y1]

    test y1 site coefs = 0
        . test [y1]: site1 site2 site3

    test all site coefficients are 0
        . test site1 site2 site3

    test y1 coefficients = y2 coefs
        . test [y1=y2]
        . test [y1=y2]: site1 site2 site3, mtest(bonf)

    test y1 coefs = y2 coefs = y3 coefs
        . test [y1=y2=y3]
        . test [y1=y2=y3]: site1 site2 site3


Examples:  after mlogit

        . mlogit y x1 x2 x3 site1 site2 site3

    test y=1 coefs = 0
        . test [1]

    test y=1 site coefs = 0
        . test [1]: site1 site2 site3

    test y=1 coefficients = y=2 coefs
        . test [1=2]

        . test [1=2]: site1 site2 site3

    test all site coefficients are 0
        . test site1 site2 site3


Examples:  after reg3

        . reg3 (y1 = x1 x2 x3) (y2 = x1 x3 x4) (y3 = x1 x2 x5)

    test y1 coefs = 0
        . test [y1]

    test equality common coefficients in y1, y2, y3: only x1
        . test [y1=y2=y3], common

    test equality common coefficients in y1 and y2 (x1 x3 _cons) and in y1 and y3 (x1 x2 _cons)
        . test ([y1=y2]) ([y1=y3]), common constant


Examples with testparm

    . testparm inc*

    . testparm inc*, equal equation(select)

二维码

扫码加我 拉你入群

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

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

2008-12-26 11:46:00

非常感谢~~~

我还是新手~~不大看的懂,版主真的是好厉害的说~~

二维码

扫码加我 拉你入群

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

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

2008-12-26 11:47:00

厉害~~

非常感谢~~~

我还是新手~~不大看的懂,版主真的是好厉害的说~~

 

二维码

扫码加我 拉你入群

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

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

2008-12-26 12:02:00

这是stata的help里面的

你先买本基础的书看看吧

二维码

扫码加我 拉你入群

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

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

2009-2-27 13:04:00

corr 因变量 自变量

二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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