答案 0 :(得分:2)
由于您没有提供完整的输出或MCVE,因此很难确切地确定出了什么问题。错误303表示:
您所指的是与 方程或结果找不到。
这意味着您可能是通过引用数字值而不是Stata用来标记每个方程的相应值标签来错误地定义约束。
代替
constraint 1 [insure=3]:age =-1*[insure=2]:age
尝试这样的事情:
. webuse sysdsn1
(Health insurance data)
. label list insure
insure:
1 Indemnity
2 Prepaid
3 Uninsure
. constraint 1 [Uninsure]:age =-1*[Prepaid]:age
. mlogit insure age male i.site, constraints(1) nolog
Multinomial logistic regression Number of obs = 615
Wald chi2(7) = 20.43
Log likelihood = -544.32915 Prob > chi2 = 0.0047
( 1) [Prepaid]age + [Uninsure]age = 0
------------------------------------------------------------------------------
insure | Coef. Std. Err. z P>|z| [95% Conf. Interval]
-------------+----------------------------------------------------------------
Indemnity | (base outcome)
-------------+----------------------------------------------------------------
Prepaid |
age | -.0054932 .0046759 -1.17 0.240 -.0146579 .0036714
male | .4673414 .1980637 2.36 0.018 .0791436 .8555392
|
site |
2 | -.0030463 .2045162 -0.01 0.988 -.4038907 .397798
3 | -.4001761 .2179144 -1.84 0.066 -.8272804 .0269282
|
_cons | .1940359 .2672973 0.73 0.468 -.3298572 .717929
-------------+----------------------------------------------------------------
Uninsure |
age | .0054932 .0046759 1.17 0.240 -.0036714 .0146579
male | .4015065 .3642457 1.10 0.270 -.3124019 1.115415
|
site |
2 | -1.192478 .4670081 -2.55 0.011 -2.107797 -.2771591
3 | -.1393011 .3592712 -0.39 0.698 -.8434596 .5648575
|
_cons | -1.868834 .3596923 -5.20 0.000 -2.573818 -1.16385
------------------------------------------------------------------------------