I am trying to get my table to look like the following in a .tex file, using estout. This shows the coefficient in the first row, the standard error in the second row, and observations in the third row. I am very close, but the values for observations in the third row always comes up blank (also I would like the observation count in brackets)? I'm sure it is a minor tweak in the "cells" line of the code, but I can't seem to get it, if anyone has any great insight. Many thanks. Desired output and code below. (In the photo here I had to enter in the third row values manually).
[ATTACH=CONFIG]temp_23185_1624621629030_206[/ATTACH]
Code:
forvalues v=1/5 { preserve keep if visit == `v' reg lhs1 rank1 estimates store model`v' restore } #delimit ; estout model1 model2 model3 model4 model5 using "hiv_ci_4.tex" , style(tex) cells(b(star fmt(3)) se(par fmt(3)) N(par fmt[%9.0gc])) mlabels("(W1)" "(W2)" "(W3)" "(W4)" "(W5)") collabels(none) starl(* 0.1 ** 0.05 *** 0.01) keep(rank1) order(rank1) prehead( \begin{table}[htbp!]\caption{HIV Prevalence Concentration Index by Wave -- Treated\label{tttResultsrobust} } \begin{small} \begin{center} \textbf{} \begin{tabular}{@{\extracolsep{4pt}}l*{@M}{c}@{}} \hline \hline ) posthead(\hline) prefoot() postfoot( \noalign{\smallskip} \hline \hline \end{tabular} \end{center} \footnotesize Notes: \( @starlegend \). Standard errors in parentheses. Observation count in brackets. /// \end{small} \end{table} ) replace; #delimit cr
0 Response to Help with Estout table showing 3 values vertically, in 3 rows
Post a Comment