Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Fitstat gives error message

    Hi all,

    When I use fitstat after a ologit regression, I get this message:

    Code:
    . fitstat
    
    Measures of Fit for ologit of gnew
    
    variable cut1 not found
    r(111);
    It should work after ologit, right? Am I doing something wrong?

    Thanks in advance, Joris


    My full output is this:

    Code:
    . ologit gnew tnew##anew age i.gender i.country  
    
    Iteration 0:   log likelihood = -28944.057  
    Iteration 1:   log likelihood = -26812.215  
    Iteration 2:   log likelihood =  -26698.37  
    Iteration 3:   log likelihood =   -26690.5  
    Iteration 4:   log likelihood = -26690.499  
    
    Ordered logistic regression                     Number of obs     =     24,623
                                                    LR chi2(44)       =    4507.11
                                                    Prob > chi2       =     0.0000
    Log likelihood = -26690.499                     Pseudo R2         =     0.0779
    
    -----------------------------------------------------------------------------------------
                       gnew |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
    ------------------------+----------------------------------------------------------------
                       tnew |
                         2  |   1.030233   .2171831     4.74   0.000     .6045618    1.455904
                         3  |   1.352408   .2200272     6.15   0.000     .9211623    1.783653
                         4  |   .8947434   .2676432     3.34   0.001     .3701725    1.419314
                            |
                       anew |
                         2  |   1.271145    .208558     6.09   0.000     .8623791    1.679912
                         3  |   2.483389   .1966048    12.63   0.000      2.09805    2.868727
                         4  |   3.033947   .1997814    15.19   0.000     2.642383    3.425512
                            |
                  tnew#anew |
                       2 2  |  -.3554807    .253765    -1.40   0.161    -.8528509    .1418895
                       2 3  |  -.5970068   .2393581    -2.49   0.013     -1.06614   -.1278736
                       2 4  |   -.509385   .2427411    -2.10   0.036    -.9851488   -.0336212
                       3 2  |  -.3063902   .2550077    -1.20   0.230    -.8061961    .1934157
                       3 3  |  -.5040884   .2407114    -2.09   0.036    -.9758741   -.0323026
                       3 4  |  -.2518298   .2433407    -1.03   0.301    -.7287687    .2251092
                       4 2  |   .1975969   .3144724     0.63   0.530    -.4187577    .8139516
                       4 3  |   .0462455   .2893002     0.16   0.873    -.5207726    .6132636
                       4 4  |   .3184303   .2893607     1.10   0.271    -.2487062    .8855668
                            |
                        age |   .0069957   .0007822     8.94   0.000     .0054626    .0085288
                            |
                     gender |
                    Female  |   .0669775    .026003     2.58   0.010     .0160126    .1179425
                            |
                    country |
              BE - Belgium  |  -.2960256   .0907258    -3.26   0.001     -.473845   -.1182063
      NL - The Netherlands  |  -.0048155    .090384    -0.05   0.958    -.1819649     .172334
              DE - Germany  |   .7002049   .0913883     7.66   0.000     .5210871    .8793228
                IT - Italy  |  -.9881586   .0914986   -10.80   0.000    -1.167493   -.8088247
           LU - Luxembourg  |   .1184309   .1100827     1.08   0.282    -.0973272     .334189
              DK - Denmark  |   .1709663   .0902512     1.89   0.058    -.0059228    .3478553
              IE - Ireland  |  -.2679165   .0900797    -2.97   0.003    -.4444695   -.0913635
       GB - United Kingdom  |  -.3595088   .0912628    -3.94   0.000    -.5383807   -.1806369
               GR - Greece  |   .2142078   .0920627     2.33   0.020     .0337682    .3946474
                ES - Spain  |   .1002079   .0911547     1.10   0.272     -.078452    .2788678
             PT - Portugal  |  -.3403315   .0918696    -3.70   0.000    -.5203926   -.1602705
              FI - Finland  |  -.1976726   .0901073    -2.19   0.028    -.3742797   -.0210654
               SE - Sweden  |   .1319915   .0895079     1.47   0.140    -.0434407    .3074238
              AT - Austria  |   .9378191   .0918348    10.21   0.000     .7578262    1.117812
    CY - Cyprus (Republic)  |  -.2075014   .1139757    -1.82   0.069    -.4308897    .0158868
       CZ - Czech Republic  |   -.517895   .0907813    -5.70   0.000    -.6958231    -.339967
              EE - Estonia  |  -.0187452   .0950899    -0.20   0.844     -.205118    .1676277
              HU - Hungary  |   .1093826   .0918848     1.19   0.234    -.0707083    .2894736
               LV - Latvia  |  -.0803197   .0926214    -0.87   0.386    -.2618543     .101215
            LT - Lithuania  |  -.4351261   .0934434    -4.66   0.000    -.6182718   -.2519804
                MT - Malta  |   -.441386   .1194721    -3.69   0.000     -.675547   -.2072249
               PL - Poland  |   .0722042   .0923299     0.78   0.434    -.1087591    .2531675
             SK - Slovakia  |   .0001376   .0908502     0.00   0.999    -.1779255    .1782007
             SI - Slovenia  |   .1418524   .0908035     1.56   0.118    -.0361192    .3198241
             BG - Bulgaria  |  -1.256176   .0930113   -13.51   0.000    -1.438475   -1.073877
              RO - Romania  |  -.3976991    .093806    -4.24   0.000    -.5815555   -.2138428
              HR - Croatia  |  -.2340154    .091237    -2.56   0.010    -.4128365   -.0551942
    ------------------------+----------------------------------------------------------------
                      /cut1 |   .0049086   .1860081                     -.3596605    .3694777
                      /cut2 |   .3976366   .1861253                      .0328377    .7624355
                      /cut3 |   1.220395   .1866234                        .85462     1.58617
                      /cut4 |   1.657373   .1868529                      1.291148    2.023598
                      /cut5 |   4.694474   .1884082                      4.325201    5.063747
    -----------------------------------------------------------------------------------------
    
    . fitstat
    
    Measures of Fit for ologit of gnew
    
    variable cut1 not found
    r(111);
    
    .

  • #2
    You are probably using an outdated version of fitstat. The current version is part of the spost13 package. Uninstall what you have and then type

    findit spost13_ado

    and then install it.
    -------------------------------------------
    Richard Williams, Notre Dame Dept of Sociology
    StataNow Version: 19.5 MP (2 processor)

    EMAIL: [email protected]
    WWW: https://www3.nd.edu/~rwilliam

    Comment


    • #3
      Works perfectly now, thank you Richard!

      Comment

      Working...
      X