Announcement

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

  • esttab_ label change in stata result window, not in .rtf

    Hello,
    my first time using esttab...
    Since I can't seem to find my problem anywhere in the forums, I suppose I made a silly but hopefully simple mistakes that someone here spots:
    I have created a result table using esttab and stored the results via
    esttab using new.rtf, replace
    All the results show up nicely. But the results of my options with title, mtitle and coeflabel don't show up in the .rtf. They DO, however, show up in the stata result windows.
    What I did:
    Stored four models using the eststo command. Then:
    esttab M1 M2 M3 M4, se label nonumber title ("title") mtitle ("A" "B" "C" "D") coeflabel (var1 "one" var2 "two") addnotes (explain why I did this and that)

    In the .rtf output the se options shows (standard error in parenthesis) but the label options don't. In the stata result window everything is applied.

    WHY?

    I am endlessly grateful for your ideas.

    Cheers,
    Bisa

  • #2
    My best guess is you are using two separate lines for the esttab with all the options and esttab writing to a file.
    That is:
    Code:
    sysuse auto, clear
    reg price mpg rep78 headroom trunk weight
    eststo M1
    reg price mpg rep78 headroom trunk weight
    eststo M2
    reg price mpg rep78 headroom trunk weight
    eststo M3
    reg price mpg rep78 headroom trunk weight
    eststo M4
    esttab M1 M2 M3 M4,  se label nonumber title ("title") mtitle ("A" "B" "C" "D") coeflabel (var1 "one" var2 "two") addnotes (explain why I did this and that)
    esttab using new.rtf, replace
    Dont do that.
    Keep the output to new.rtf in the same line as your esttab line with all the other options.
    That is:
    Code:
    sysuse auto, clear
    reg price mpg rep78 headroom trunk weight
    eststo M1
    reg price mpg rep78 headroom trunk weight
    eststo M2
    reg price mpg rep78 headroom trunk weight
    eststo M3
    reg price mpg rep78 headroom trunk weight
    eststo M4
    esttab M1 M2 M3 M4 using new.rtf, replace se label nonumber title ("title") mtitle ("A" "B" "C" "D") coeflabel (var1 "one" var2 "two") addnotes (explain why I did this and that)
    When posting code, please be as specific and complete as possible. This will help others see more easily what went worng.

    Comment


    • #3
      Hello Jorrit, thank you very much! That did it!!!

      Comment

      Working...
      X