Announcement

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

  • Esttab to latex

    Hi and thanks in advance for the answer,

    I am using esttab to create 3 different text table that are directly uploaded onto latex and i have the following formatting issue:

    this is the stata code:

    esttab estSURadjnondurmanDE estSURadjnondurmanES estSURadjnondurmanFR estSURadjnondurmanIT using "$export_directory/beta_table.tex", replace ///
    b(3) not keep(d_capacity_industry) coeflabel(d_capacity_industry "\hspace{0.25cm}$\hat{\beta}$") ///
    label booktabs nonotes noobs nolines nonum gaps nostar collabels(none) width(\textwidth) alignment(c) ///
    mtitles("Germany" "Spain" "France" "Italy") refcat(d_capacity_industry "\emph{Non-durable manufacturing}" , nolabel)

    esttab estSURadjdurmanDE estSURadjdurmanES estSURadjdurmanFR estSURadjdurmanIT using "$export_directory/beta_table.tex", append ///
    b(3) not keep(d_capacity_industry) coeflabel(d_capacity_industry "\hspace{0.25cm}$\hat{\beta}$") ///
    label booktabs nonotes nodep nolines noobs gaps nostar nonum collabels(none) width(\textwidth) alignment(c) ///
    nomtitles refcat(d_capacity_industry "\emph{Durable manufacturing}", nolabel)

    esttab estSURadjnonmanDE estSURadjnonmanES estSURadjnonmanFR estSURadjnonmanIT using "$export_directory/beta_table.tex", append ///
    b(3) not keep(d_capacity_industry) coeflabel(d_capacity_industry "\hspace{0.25cm}$\hat{\beta}$") ///
    label booktabs nonotes nodep nolines noobs gaps nostar nonum collabels(none) width(\textwidth) alignment(c) ///
    nomtitles refcat(d_capacity_industry "\emph{Non-manufacturing}", nolabel)

    This is the table created by stata:

    \begin{tabular*}{\textwidth}{@{\hskip\tabcolsep\ex tracolsep\fill}l*{4}{c}}
    &\multicolumn{1}{c}{Germany}&\multicolumn{1}{c} {Sp ain}&\multicolumn{1}{c}{France}&\multicolumn{1}{c} {Italy}\\
    \addlinespace
    \emph{Non-durable manufacturing}& & & & \\
    \addlinespace
    \hspace{0.25cm}$\hat{\beta}$& 0.420& 0.098& 0.096& 0.401\\
    \end{tabular*}
    \begin{tabular*}{\textwidth}{@{\hskip\tabcolsep\ex tracolsep\fill}l*{4}{c}}
    \addlinespace
    \emph{Durable manufacturing}& & & & \\
    \addlinespace
    \hspace{0.25cm}$\hat{\beta}$& 0.291& 0.155& 0.191& 0.273\\
    \end{tabular*}
    \begin{tabular*}{\textwidth}{@{\hskip\tabcolsep\ex tracolsep\fill}l*{4}{c}}
    \addlinespace
    \emph{Non-manufacturing}& & & & \\
    \addlinespace
    \hspace{0.25cm}$\hat{\beta}$& 0.181& 0.337& 0.503& 0.136\\
    \end{tabular*}

    However, the resulting table displays wrong as you can see from the attachment.

    Best,

    Riccardo
    Attached Files
Working...
X