Announcement

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

  • outreg2 formatting preference

    This question was posed in the old email archive and I haven't seen a solution. Since I have the same question I thought I would post it here. The example uses LaTex output, but I assume a solution would work for other outputs (.rtf ,.csv, etc...)

    Hello, Outreg2 automatically creates the word "VARIABLES." Is there a way to eliminate it (so that it doesn't anything) or change it from saying "VARIABLES" to something else (e.g. "Dep Var")? Below is an example of code and the table it makes. Thanks a lot.

    Sample code:
    Code:
    sysuse auto
    reg price mpg
    outreg2 using autoexample, nocons nonotes addtext("") tex(frag) replace
    LaTex output code:
    Code:
    \begin{tabular}{lc} \hline
    & (1) \\
    VARIABLES & price \\ \hline
    & \\
    mpg & -238.9*** \\
    & (53.08) \\
    & \\
    Observations & 74 \\
    R-squared & 0.220 \\ \hline
    \end{tabular}
    Last edited by Dan Mosman; 09 Nov 2023, 09:34.
Working...
X