Announcement

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

  • Stata to Latex: Formatting a table - width, wrapping notes and caption position

    I'm a newbie to stata and latex when it comes to direct export of tables. After reading some documentation, I used the following code (after labeling the variables):

    Code:
    eststo: quietly regress defgh hello, robust
    eststo: quietly regress defgh hello lnGDP, robust
    esttab using abc.tex, replace alignment(D{.}{.}{-1}) width(1\hsize) se ar2 title("abc") label addnotes("blablablablablablablablablablablablablablablablablablablablablablablablablablablablablablablablablablablablablablablablablablablabla")  
    eststo clear
    (Sidenote: abc, defgh, hello and blablabla... are not the real regressions. I just replaced my real names with these!)

    I insert the table with:

    Code:
    \input{Tables/abc.tex}

    I basically have 3 issues:

    1) The table is too wide (prob. due to hsize) (how can I tell latex that it should only consider the wide of the first row?)

    2) The caption of the second regression moves to somewhere else (also had it a bit more left, but still not where it belongs)

    3) My table notes don't get wrapped... Is it also possible to put them in a nice box?

    Thanks for your help!



    ​​​​​​​
Working...
X