Skip to main content
#delimit ; 
estout STORED_ESTIMATES
       using "FILE_NAME.tex", 
       cells(b(star fmt(2)) se(par fmt(2))) 
       label style(tex) 
       stats(r2 
             N 
             N_clust, fmt(3 %9.0gc %9.0gc)
             labels("\hline \(R^2\)" 
                   "N" 
                   "Clusters")) 
       mlabels()  
       collabels(none) 
       varlabels() 
       starl(* 0.1 ** 0.05 *** 0.01)   
       keep()               
       order()               
       prehead( 
           \begin{table}[h]
           \refstepcounter{table}            
           \label{table:}            
           \centering
           % Change "RedOrange" to the color you use for reference links
           \colorlet{tempColor}{RedOrange}
           \colorlet{RedOrange}{black}
           \textbf{Table ??. } \\
           \textbf{Dependent Variables Measured in }
           \colorlet{RedOrange}{tempColor}
           \begin{tabular}{@{\extracolsep{4pt}}l*{@M}{c}@{}} 
           \hline \hline 
           % Adjust sub-headers here
           & \multicolumn{2}{c}{\textbf{}} &
           \multicolumn{2}{c}{\textbf{}} \\
           \cline{2-3}  
           \cline{4-5}              
       )
       posthead(\hline) 
       prefoot() 
       postfoot(
           \noalign{\smallskip} \hline \hline 
           \end{tabular}
           \medskip
           \begin{minipage}{0.9\textwidth}
           \footnotesize \justify Notes: \( @starlegend \). 
           \end{minipage}        
       \end{table}
       )
       replace;
#delimit cr