\documentclass[11pt]{article} \usepackage{stata} \begin{document} \section{Displaying Estimation Results} \subsection{Example 3: Detailed output} If you want to output some of the details such as R-square and number of observations used in the model, you can use the option {\tt detail} after the {\tt outtex} command. We also used the option {\tt below} to display the standard error of the estimate right below it. Another feature is the use of macro variable {\tt e(depvar)} for creating a customized title. \small{ \begin{verbatim} . outtex, detail level below title(Dep = `e(depvar)') %------- Begin LaTeX code -------% { \def\sep{0.5em} \def\fns{\footnotesize} \def\onepc{$^{\ast\ast}$} \def\fivepc{$^{\ast}$} \def\tenpc{$^{\dag}$} \def\legend{\multicolumn{3}{l}{\footnotesize{Significance levels :\hspace{1em} $\dag$ : 10\% \hspace{1em} $\ast$ : 5\% \hspace{1em} $\ast\ast$ : 1\% \normalsize}}} \begin{table}[htbp]\centering \caption{Dep = write \label{tabresult regress}} \begin{tabular}{l r @{} l }\hline\hline \multicolumn{1}{c} {\textbf{Variable}} & \textbf{Coefficient} \\& \fns{(Std. Err.)} \\ \hline math & 0.633&\onepc \\ & \fns{(0.053)} &\\[\sep] female & 5.218&\onepc \\ & \fns{(0.998)} &\\[\sep] Intercept & 16.614&\onepc \\ & \fns{(2.909)} &\\[\sep] \hline \multicolumn{3}{c}{}\\ \hline N & \multicolumn{2}{c}{200}\\ R$^{2}$ & \multicolumn{2}{c}{0.457}\\ F $ _{(2,197)}$ & \multicolumn{2}{c}{82.805}\\ \hline \end{tabular} \end{table} } %------- End LaTeX code -------% \end{verbatim} } \def\sep{0.5em} \def\fns{\footnotesize} \def\onepc{$^{\ast\ast}$} \def\fivepc{$^{\ast}$} \def\tenpc{$^{\dag}$} \def\legend{\multicolumn{3}{l}{\footnotesize{Significance levels :\hspace{1em} $\dag$ : 10\% \hspace{1em} $\ast$ : 5\% \hspace{1em} $\ast\ast$ : 1\% \normalsize}}} \begin{table}[htbp]\centering \caption{Dep = write \label{tabresult regress}} \begin{tabular}{l r @{} l }\hline\hline \multicolumn{1}{c} {\textbf{Variable}} & \textbf{Coefficient} \\& \fns{(Std. Err.)} \\ \hline math & 0.633&\onepc \\ & \fns{(0.053)} &\\[\sep] female & 5.218&\onepc \\ & \fns{(0.998)} &\\[\sep] Intercept & 16.614&\onepc \\ & \fns{(2.909)} &\\[\sep] \hline \multicolumn{3}{c}{}\\ \hline N & \multicolumn{2}{c}{200}\\ R$^{2}$ & \multicolumn{2}{c}{0.457}\\ F $ _{(2,197)}$ & \multicolumn{2}{c}{82.805}\\ \hline \end{tabular} \end{table} \end{document}