Announcement

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

  • Issue with estadd mlogtest, combine

    Hello,

    I'm trying to use the command estadd mlogtest, combine in order to export the results to a LaTeX table. However, an error message appears after running it. Here is an example:

    Code:
    . webuse nhanes2f, clear
    
    . quietly svy: mlogit health weight height i.female
    
    . estadd mlogtest, combine
    
    Wald tests for combining alternatives (N=10335)
    
      Ho: All coefficients except intercepts associated with a given pair
          of alternatives are 0 (i.e., alternatives can be combined)
    
                     |         F    df   df_r      P>F
    -----------------+--------------------------------
         poor & fair |     5.194     3      3    0.005
      poor & average |     9.258     3      3    0.000
         poor & good |    17.481     3      3    0.000
     poor & excellen |    26.376     3      3    0.000
      fair & average |    11.237     3      3    0.000
         fair & good |    41.528     3      3    0.000
     fair & excellen |    68.387     3      3    0.000
      average & good |    15.819     3      3    0.000
    average & exce~n |    48.718     3      3    0.000
     good & excellen |    16.237     3      3    0.000
    
    added scalars:
    combine_5.194049199944928_3_chi2 invalid name
    r(198);
    
    end of do-file
    The problem doesn't happen when using other options of the mlogtest. Here is an example using the wald option:

    Code:
    . webuse nhanes2f, clear
    
    . quietly svy: mlogit health weight height i.female
    
    . estadd mlogtest, wald
    
    Wald tests for independent variables (N=10335)
    
      Ho: All coefficients associated with given variable(s) are 0
    
                     |         F    df   df_r      P>F
    -----------------+--------------------------------
              weight |    23.317     4      4    0.000
              height |    53.000     4      4    0.000
            1.female |    10.297     4      4    0.000
    
    added matrices:
                   e(wald) :  4 x 3      (F, df, df_r, P>F)
    
    .
    end of do-file
    Note that the version of the mlogtest I'm using is:

    Code:
    . which mlogtest
    
    /Users/diegogomes/Library/Application Support/Stata/ado/plus/m/mlogtest.ado
    *! version 3.5.0 2016-10-25 | long freese | problem in Stata 14.2 smhsiao
    Does anyone know what is happening? Is there a workaround?

    Thanks!
    Last edited by Diego Gomes; 29 Oct 2018, 14:06.
Working...
X