Announcement

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

  • Adding Within R2 to my table using esttab

    Hello guys,
    I am trying to export my regressions results to a table using the "esttab" command.
    I started by running my regression with the "xtscc dep.var indep.var, fe output"
    Then I used the "esttab" command to have the table.
    Since I am interested in reporting my R^2 Within groups I used the following command: "estate scalar Within_R2=e(r2_w)"
    Now what can I do to include my R^2 within in the table results?
    Thanks for the help!
    Nicole

  • #2
    esttab is from the estout package from SSC/Stata Journal as you're asked to explain in the FAQ.

    Two ways to do this:
    Code:
    webuse grunfeld
    xtreg invest mvalue kstock, fe
    esttab, scalar("r2_w  Within R2")
    Code:
    xtreg invest mvalue kstock, fe
    estadd scalar r2_within = e(r2_w)
    esttab, stats(r2_within, labels("Within R2"))

    Comment


    • #3
      Thanks a lot!

      Comment

      Working...
      X