全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
4071 4
2014-04-18
用了probit y x1 x2 ...xn
然后predict probitxb xb
出现错误“too many variables specified
r(103);”


什么意思?是我probit命令中解释变量太多了吗?但我将解释变量删成只剩x1,还是出现这个错误。这是怎么回事?

并且,在运行用了probit y x1 x2 ...xn时,结果是有了,显著性也看得出来,但是回归结果下方有个“Note: 1 failure and 0 successes completely determined.”这又是什么意思,如何改进?


二维码

扫码加我 拉你入群

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

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

全部回复
2014-4-18 19:45:37
Examples

    Setup
        . sysuse auto
        . probit foreign weight mpg

    Obtain predicted probabilities
        . predict p

    Calculate and display summary statistics
        . summarize foreign p

    Use rules when making predictions
        . predict p2, rules

    Calculate and display summary statistics
        . summarize foreign p p2

    Ignore rules and exclusion criteria
        . predict p3, asif

    Calculate and display summary statistics
        . summarize foreign p p2 p3


看软件predict的help中的例子
predict 后面只能是一个预测的变量
二维码

扫码加我 拉你入群

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

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

2014-4-20 01:28:29
谢谢!可还是不太明白...
二维码

扫码加我 拉你入群

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

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

2014-4-20 07:03:15
see help section of the postestimation of the probit.  

You need to use

predict probitxb, xb
二维码

扫码加我 拉你入群

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

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

2014-4-21 00:08:53
jjjj6666 发表于 2014-4-20 07:03
see help section of the postestimation of the probit.  

You need to use
Yes, I've used it. But I cannot find where the real problem is. Then I want to predict using " gen ..." by hand, with the coefficients got from the logit program.
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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