Announcement

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

  • Exporting table using esttab with no time fixed effect

    Hello,

    I'm working on a strongly time fixed balanced panel data and wanted to report my xtreg result gradually (adding one variable at times).
    Something like this.

    Column 1: xtreg PT RND_L1 i.year, vce (cluster countryid)
    Column 2: xtreg PT RND_L1 LVG i.year, vce (cluster countryid)

    Until: xtreg PT RND_L1 LVG EX GI RER EDU i.year, fe vce (cluster countryid)

    My question is: Do I have to include i.year in every regression or leave it until the last regression?
    Provided that i.year needs to be included in all regressions, is there a way to ignore when reporting the final result (only showing the main variables) using esttab command?

    Thank you.


  • #2
    Yes! Use the option
    Code:
    keep(RND_L1 LVG EX GI RER EDU)
    in your esttab command.

    Comment


    • #3
      George Taylor I can't thank you enough. It worked but when I want to add adjusted r2 and p values it goes back to including the years. Any remedy to this.. Thank you again

      Comment

      Working...
      X