asdocx: Export from Stata to Word, Excel, LaTeX & HTML Forums asdocx Forum Suppress R-square but report Adj-R2

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • Brian
    Participant
    Post count: 5

    Hi Professor,

    Is there a way to suppress R-square but report Adj-R2 instead? My current solution is to report Adj-R2 and remove the automatically generated R-square manually.

    Thanks,
    Brian

    Dr. Attaullah Shah
    Keymaster
    Post count: 106

    Hello Brian
    I have updated asdocx in line with your request. R-squared can now be optionally suppressed in nested tables. The adjusted r-squared can be shown with the option stat(r2_a). See this example:

    asdocx_update
    sysuse auto
    asdocx reg price mpg rep78 , nest  stat(r2_a) nor2 replace
    asdocx reg price mpg rep78 trunk, nest  stat(r2_a) nor2 
    
     
                                 Table: Regression results
      0 |1                                        2                     3 
    ----+-----------------------------------------------------------------------------
      1 |                                       (1)                   (2) 
      2 |                                     price                 price 
    ----+-----------------------------------------------------------------------------
      3 |mpg                            -271.643***           -252.266*** 
      4 |                                  (57.771)              (70.806) 
      5 |rep78                             666.957*              650.053* 
      6 |                                 (342.356)             (346.176) 
      7 |trunk                                                     42.466 
      8 |                                                        (88.662) 
      9 |_cons                          9657.754***           8711.347*** 
     10 |                                 (1346.54)            (2395.593) 
     11 |Observations                            69                    69 
     12 |Adj R\super2                         0.228                 0.219 
    ----------------------------------------------------------------------------------
    
    
    
    Brian
    Participant
    Post count: 5

    Dear Professor,

    Thanks for the updates. It works now!

    Brian

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.