Announcement

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

  • Trouble with Wald testing after update to stata 16

    Hi, I just updated from stata 15 to 16. I tried to run a do-file that had worked well on stata 15 but I keep getting error messages when it gets to the "test" command. My program uses survey methodology. Here's a sample line, in which mvpa_min is a continuous variable and college is a binary variable (yes, no):
    svy, subpop(if include==1): mean mvpa_min, over(college)
    test [mvpa_min]yes = [mvpa_min]no
    The error message I get is:
    equation [mvpa_min] not found
    which I did not get when I used Stata 15.
    I read the help file for the test command but still don't understand why it isn't working for me anymore. Any thoughts?
    Thanks!

  • #2
    Use the -coeflegend- option to see how Stata to specifying the coefficients:
    Code:
    . sysuse auto,clear
    (1978 Automobile Data)
    
    . mean price, over(fore) coefleg
    
    Mean estimation                   Number of obs   =         74
    
    ---------------------------------------------------------------------------------
                    |       Mean  Legend
    ----------------+----------------------------------------------------------------
    c.price@foreign |
          Domestic  |   6072.423  _b[[email protected]]
           Foreign  |   6384.682  _b[[email protected]]
    ---------------------------------------------------------------------------------
    
    . test _b[[email protected]]= _b[[email protected]]
    
     ( 1)  [email protected] - [email protected] = 0
    
           F(  1,    73) =    0.20
                Prob > F =    0.6591

    Comment


    • #3
      You can often avoid such problems by using

      version 15

      before the other commands you were using in 15.
      -------------------------------------------
      Richard Williams, Notre Dame Dept of Sociology
      StataNow Version: 19.5 MP (2 processor)

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

      Comment

      Working...
      X