Announcement

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

  • esttab LaTex export problem


    Hi everyone, I have encountered a problem and could not find a resource which discusses it. I am exporting xtreg results to LaTex using esttab. Here is a minimal example to demonstrate the issue: I run a regression -
    Code:
    quietly: eststo: xtreg z_math loc_tib, i(cntid)
    and export:
    Code:
     esttab using `reg1'.tex, replace nolines tex
    So far so good. However, if I add prehead(\hline) inside esttab:
    Code:
    esttab using `reg1'.tex, replace nolines prehead(\hline) tex
    the export omits the command
    \begin{tabular}
    from the LaTex file, whereas if I add
    Code:
    posthead(\hline)
    , the export is correct.
    Stata/MP 15.1
Working...
X