Announcement

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

  • Getting Wald Chi-Square test statistics instead of Z test statistics when using probit

    Hello All,

    This is my first post to statalist so please forgive me if I make a mistake of etiquette.

    First let me state that I am using STATA version 12.1.

    I am currently attempting to replicate a study that uses probit regressions. In the study's reported results, test statistics are listed as "Wald Chi-Square" for each individual coefficient. In my replication, my coefficient estimates and p-values are similar, which seems to suggest my analysis is correct. However the test statistics output by STATA for the probit command are "Z statistics" and are uniformly much lower in my replication than in the study I am attempting to replicate. Does anyone know if there is a way to have STATA output Chi-Square test statistics for each coefficient (I know that it provides a summary Chi-Square statistic to test the null that none of the coefficients are significant).

    Thanks in advance for any help you are able to provide.

  • #2
    Can't you just square the z-statistics?

    Comment


    • #3
      Nick,

      If you prefer a command that produces Wald Chi-square values directly, try the following:

      probit y x1 x2 ....
      test x1
      test x2
      ...

      See here for more information: http://www.ats.ucla.edu/stat/stata/faq/nested_tests.htm

      Regards,
      Joe

      Comment


      • #4
        Welcome to Statalist, Nick. Before your next post, I suggest that you read http://www.statalist.org/forums/help from the bottom up.


        Steve
        Steve Samuels
        Statistical Consulting
        [email protected]

        Stata 14.2

        Comment


        • #5
          Originally posted by Joe Canner View Post
          If you prefer a command that produces Wald Chi-square values directly, try the following:

          probit y x1 x2 ....
          test x1
          test x2
          ...
          Nice one. In fact you can run all the tests with one command:
          Code:
          probit y x1 x2 ...
          test x1 x2 ..., mtest

          Comment


          • #6
            In fact, squaring the z-statistic and using test are equivalent as you can see in the example below

            Code:
            // create an example model
            sysuse auto, clear
            probit foreign price mpg
            
            // use -test-
            test price mpg, mtest
            
            // square z-statistics
            di as txt "Chi^2 for price " ///
               as result (_b[price]/_se[price])^2
            di as txt "Chi^2 for mpg " ///
               as result (_b[mpg]/_se[mpg])^2
            Here I use tricks from the Stata tip (Buis 2007) to get at the z-statistics. Using tricks from the same Stata tip you can compute the Chi square values for all parameters in one go using Mata:

            Code:
            // use Mata to do this for all
            //parameters in one go
            mata
            b = st_matrix("e(b)")'
            V = st_matrix("e(V)")
            se = diagonal(cholesky(diag(V)))
            (b :/ se ):^2
            
            // or equivalently
            (b:^2) :/ diagonal(V)
            end
            Maarten Buis (2007) Stata tip 53: Where did my p-values go? The Stata Journal, 7(4):584-586.
            http://www.stata-journal.com/article...article=st0137
            Last edited by Maarten Buis; 03 Apr 2014, 03:00.
            ---------------------------------
            Maarten L. Buis
            University of Konstanz
            Department of history and sociology
            box 40
            78457 Konstanz
            Germany
            http://www.maartenbuis.nl
            ---------------------------------

            Comment

            Working...
            X