Announcement

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

  • estout: what is the stats label for LR chi2 in logistic regression

    I run a logistic regression and would like to print out LR Chi2 statistics using
    Code:
    estout
    Code:
    eststo: quietly logit y x1 x2
    Code:
    esttab, se stats(?)
    I use quietly because the regression actually has a lot of dummy variables which I do not want to print them out. What would be stats label for LR Chi2 in the logistic regression?

  • #2
    Tracy:
    Code:
    e(chi2)
    is probably what you're looking for.
    Kind regards,
    Carlo
    (Stata 19.0)

    Comment


    • #3
      Originally posted by Carlo Lazzaro View Post
      Tracy:
      Code:
      e(chi2)
      is probably what you're looking for.
      I tried the codes below. But it shows chi2 not found.

      Code:
       eststo: quietly logit y x1 x2
      Code:
      e(chi2)

      Comment


      • #4
        Tracy:
        why not exploiting -table- new capabilities?
        Code:
        use "C:\Program Files\Stata17\ado\base\a\auto.dta"
        . quietly logit foreign mpg
        
        . estimates store logit
        
        . etable, estimates(logit) mstat(N) mstat(chi2)  mstat(p) showstars showstarsnote title("Table 1 My logit table")
        
        Table 1 My logit table
        ---------------------------------
                                 foreign 
        ---------------------------------
        Mileage (mpg)            0.160 **
                               (0.053)   
        Intercept               -4.379 **
                               (1.211)   
        Number of observations      74   
        χ²                       11.49   
        Model test p-value        0.00   
        ---------------------------------
        ** p<.01, * p<.05
        
        . putdocx begin
        
        . putdocx collect
        
        
        .
        Kind regards,
        Carlo
        (Stata 19.0)

        Comment


        • #5
          Originally posted by Carlo Lazzaro View Post
          Tracy:
          why not exploiting -table- new capabilities?
          Code:
          use "C:\Program Files\Stata17\ado\base\a\auto.dta"
          . quietly logit foreign mpg
          
          . estimates store logit
          
          . etable, estimates(logit) mstat(N) mstat(chi2) mstat(p) showstars showstarsnote title("Table 1 My logit table")
          
          Table 1 My logit table
          ---------------------------------
          foreign
          ---------------------------------
          Mileage (mpg) 0.160 **
          (0.053)
          Intercept -4.379 **
          (1.211)
          Number of observations 74
          χ² 11.49
          Model test p-value 0.00
          ---------------------------------
          ** p<.01, * p<.05
          
          . putdocx begin
          
          . putdocx collect
          
          
          .
          Thanks. I figure it out.

          Comment

          Working...
          X