全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
3996 10
2023-11-24
求助各位大神,在做utest测试时,我输入了如下代码:gen x_2= x^2
ologit y x x_2 a b c
utest x x_2,fieller
然后显示x not found
但是x肯定是存在的,在进行其他检验的时候都可以正常运行,请问这是怎么回事呢?谢谢!
二维码

扫码加我 拉你入群

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

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

全部回复
2023-11-24 18:10:51
截图看看
二维码

扫码加我 拉你入群

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

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

2023-11-24 18:54:54
wdlbcj 发表于 2023-11-24 18:10
截图看看
gen x_2=x^2
(1,029,467 missing values generated)

. ologit y x x_2 a b c d e

Iteration 0:   log likelihood = -6733.5355  
Iteration 1:   log likelihood = -6510.7255  
Iteration 2:   log likelihood = -6506.5907  
Iteration 3:   log likelihood = -6505.1638  
Iteration 4:   log likelihood = -6504.8839  
Iteration 5:   log likelihood = -6504.8769  
Iteration 6:   log likelihood = -6504.8769  

Ordered logistic regression                             Number of obs =  4,303
                                                        LR chi2(7)    = 457.32
                                                        Prob > chi2   = 0.0000
Log likelihood = -6504.8769                             Pseudo R2     = 0.0340

------------------------------------------------------------------------------
           y | Coefficient  Std. err.      z    P>|z|     [95% conf. interval]
-------------+----------------------------------------------------------------
           x |    3.00565    .443599     6.78   0.000     2.136212    3.875088
         x_2 |  -1.551123   .3768125    -4.12   0.000    -2.289661   -.8125837
           a |    3.61637   .3319385    10.89   0.000     2.965783    4.266958
           b |  -.0010762   .0017418    -0.62   0.537      -.00449    .0023377
           c |   1.179432   .0962974    12.25   0.000     .9906925    1.368172
           d |   .4459992   .0623151     7.16   0.000     .3238637    .5681346
           e |   .8661946   .2039444     4.25   0.000      .466471    1.265918
-------------+----------------------------------------------------------------
       /cut1 |   -2.89729   .1161211                     -3.124883   -2.669697
       /cut2 |  -1.832233   .0906579                     -2.009919   -1.654547
       /cut3 |  -.3307027   .0797033                     -.4869182   -.1744871
       /cut4 |   1.255451   .0815716                      1.095574    1.415329
       /cut5 |   2.964519   .0925561                      2.783112    3.145925
       /cut6 |   5.593472   .1713018                      5.257727    5.929218
       /cut7 |   8.313283   .5834858                      7.169672    9.456894
------------------------------------------------------------------------------

. utest x x_2 ,fieller
x not found
r(111);
您好,这个是做的过程
二维码

扫码加我 拉你入群

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

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

2023-11-24 18:55:20
gen x_2=x^2
(1,029,467 missing values generated)


. ologit y x x_2 a b c d e


Iteration 0:   log likelihood = -6733.5355  
Iteration 1:   log likelihood = -6510.7255  
Iteration 2:   log likelihood = -6506.5907  
Iteration 3:   log likelihood = -6505.1638  
Iteration 4:   log likelihood = -6504.8839  
Iteration 5:   log likelihood = -6504.8769  
Iteration 6:   log likelihood = -6504.8769  


Ordered logistic regression                             Number of obs =  4,303
                                                                   LR chi2(7)    = 457.32
                                                                   Prob > chi2   = 0.0000
Log likelihood = -6504.8769                           Pseudo R2     = 0.0340


------------------------------------------------------------------------------
           y | Coefficient  Std. err.      z    P>|z|     [95% conf. interval]
-------------+----------------------------------------------------------------
           x |    3.00565    .443599     6.78   0.000     2.136212    3.875088
         x_2 |  -1.551123   .3768125    -4.12   0.000    -2.289661   -.8125837
           a |    3.61637   .3319385    10.89   0.000     2.965783    4.266958
           b |  -.0010762   .0017418    -0.62   0.537      -.00449    .0023377
           c |   1.179432   .0962974    12.25   0.000     .9906925    1.368172
           d |   .4459992   .0623151     7.16   0.000     .3238637    .5681346
           e |   .8661946   .2039444     4.25   0.000      .466471    1.265918
-------------+----------------------------------------------------------------
       /cut1 |   -2.89729   .1161211                     -3.124883   -2.669697
       /cut2 |  -1.832233   .0906579                     -2.009919   -1.654547
       /cut3 |  -.3307027   .0797033                     -.4869182   -.1744871
       /cut4 |   1.255451   .0815716                      1.095574    1.415329
       /cut5 |   2.964519   .0925561                      2.783112    3.145925
       /cut6 |   5.593472   .1713018                      5.257727    5.929218
       /cut7 |   8.313283   .5834858                      7.169672    9.456894
------------------------------------------------------------------------------


. utest x x_2 ,fieller
x not found
r(111);

二维码

扫码加我 拉你入群

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

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

2023-11-24 19:52:46
修改为
utest x x_2,prefix(y)
试试
二维码

扫码加我 拉你入群

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

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

2023-11-24 20:01:40
wdlbcj 发表于 2023-11-24 19:52
修改为
utest x x_2,prefix(y)
试试
谢谢您,但还是不行
二维码

扫码加我 拉你入群

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

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

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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