Announcement

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

  • Returning to variable window after outreg2 (seeout) in Stata 16.

    I have noticed a slight change in Stata 16 after I "seeout" my regression output after "outreg2". Before in Stata 15 (it tells you to hit Enter to continue), and if I pressed "Enter" twice Stata takes me back to the variable window of my original data (not the result variables of v1, v2,...), but this doesn't work in Stata 16. I now have to go back to my Dofile to restore the data before I can see them in my variable window. Am I the only one experiencing this?

  • #2
    Enter the next command twice.

    Edit: I see you do this. I use Stata 16 and usually entering the command again works for me.

    Code:
    . sysuse auto
    (1978 Automobile Data)
    
    . reg mpg price weight
    
          Source |       SS           df       MS      Number of obs   =        74
    -------------+----------------------------------   F(2, 71)        =     66.85
           Model |  1595.93249         2  797.966246   Prob > F        =    0.0000
        Residual |  847.526967        71  11.9369995   R-squared       =    0.6531
    -------------+----------------------------------   Adj R-squared   =    0.6434
           Total |  2443.45946        73  33.4720474   Root MSE        =     3.455
    
    ------------------------------------------------------------------------------
             mpg |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
    -------------+----------------------------------------------------------------
           price |  -.0000935   .0001627    -0.57   0.567     -.000418    .0002309
          weight |  -.0058175   .0006175    -9.42   0.000    -.0070489   -.0045862
           _cons |   39.43966   1.621563    24.32   0.000     36.20635    42.67296
    ------------------------------------------------------------------------------
    
    . outreg2 using myfile, replace
    dir : seeout
    
    . seeout using "myfile.txt"
    Hit Enter to continue. des
    
    . des
    
    Contains data from C:\Program Files\Stata16\ado\base/a/auto.dta
      obs:            74                          1978 Automobile Data
     vars:            12                          13 Apr 2018 17:45
                                                  (_dta has notes)
    --------------------------------------------------------------------------------------------------------------------
                  storage   display    value
    variable name   type    format     label      variable label
    --------------------------------------------------------------------------------------------------------------------
    make            str18   %-18s                 Make and Model
    price           int     %8.0gc                Price
    mpg             int     %8.0g                 Mileage (mpg)
    rep78           int     %8.0g                 Repair Record 1978
    headroom        float   %6.1f                 Headroom (in.)
    trunk           int     %8.0g                 Trunk space (cu. ft.)
    weight          int     %8.0gc                Weight (lbs.)
    length          int     %8.0g                 Length (in.)
    turn            int     %8.0g                 Turn Circle (ft.)
    displacement    int     %8.0g                 Displacement (cu. in.)
    gear_ratio      float   %6.2f                 Gear Ratio
    foreign         byte    %8.0g      origin     Car type
    --------------------------------------------------------------------------------------------------------------------
    Sorted by: foreign
    Last edited by Andrew Musau; 15 Oct 2019, 09:13.

    Comment


    • #3
      Thank you, Andrew for your response. I do this but still the problem persists. When I do "des" it will provide the description of the variables just as in your case but fail to restore the old data set in the variable window (it keeps the v1, v2,... variables in the variable window) even after pressing "Enter". With Stata 15 as soon as I press "Enter" or "des" it will restore the old variables (make, mpg, etc). I have attached a screenshot and circle where the problem is.. Click image for larger version

Name:	Screen Shot 2019-10-15 at 1.12.32 PM.png
Views:	1
Size:	1.11 MB
ID:	1520560

      Comment


      • #4
        The data set is restored, so that's why you get results from describe. Just that the variable window does not update. Try updating both Stata and outreg2


        Code:
        ssc install outreg2, replace
        update all

        Comment


        • #5
          Thanks, it works after I updated Stata

          Comment

          Working...
          X