Announcement

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

  • outreg2 not showing results equivalent to log

    My exported excel using the outreg2 command doesn't show the same results as the one I get on STATA. May anyone know why?
    This was my set of commands:

    ssc install outreg2

    table odd block if maxhigh==1 & block==1 , c(mean totrev sd totrev mean shifts sd shifts N shifts)
    outreg2 using pre.xls, replace label noaster ctitle("Prior") addtext(Controls, No) dec(2)


    These are my stata results:
    --------------------
    | block
    odd | 1
    --------+---------
    0 | 3258.995
    | 2319.458
    | 10.94737
    | 7.582683
    | 19
    |
    1 | 3500.667
    | 2703.254
    | 12.14286
    | 8.057827
    | 21
    --------------------

    These are the exported excel results:
    (1)
    VARIABLES Prior

    (mean) high 3.99
    (1.03)
    block==2.0000 -1.28
    (1.72)
    block==3.0000 -2.56
    (1.86)
    Constant 11.33
    (1.03)

    Observations 124
    R-squared 0.69
    Controls No
    Robust standard errors in parentheses


    Is this because outreg2 is only to export regression results and not just summary or basic statistical results?

  • #2
    outreg2 takes what is on e(), whereas table only stores the number of observations in r().


    Stored results

    table stores the following in r():

    Scalars
    r(N) number of observations

    If you have Stata 17 or later, see

    Code:
    help collect
    for guidance on how you can export the output from table. Otherwise, you will have to use some other means to recreate the results from this command.

    Comment

    Working...
    X