Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.

# st: outreg2: appending Poisson regression with different DVs

 From "Schmidt, William" To "statalist@hsphsun2.harvard.edu" Subject st: outreg2: appending Poisson regression with different DVs Date Sat, 13 Apr 2013 21:13:09 -0400

I am trying to use outreg2 to append poisson regressions that have different dependent variables. Unfortunately the rows for each independent variable do not align across the regressions. This doesn't occur if I use reg instead of poisson.

My code looks like this:

sysuse auto, clear
gen DV1 = int(1000*uniform())
poisson DV1 price mpg , vce(robust)
outreg2 using table1_tex, tex(fragment)

gen DV2 = int(1000*uniform())
poisson DV2 price mpg , vce(robust)
outreg2 using table1_tex, tex(fragment)

The resulting tex output looks like the following.note price, mpg and Constant show up in two different rows.

\begin{tabular}{lccc} \hline
&  & (1) & (2) \\
EQUATION & VARIABLES & x & y \\ \hline
&  &  &  \\
DV1 & price & -4.28e-06 &  \\
&  & (2.73e-05) &  \\
& mpg & -0.00954 &  \\
&  & (0.0153) &  \\
& Constant & 6.396*** &  \\
&  & (0.416) &  \\
DV2 & price &  & 2.53e-05 \\
&  &  & (2.27e-05) \\
& mpg &  & 0.0166 \\
&  &  & (0.0103) \\
& Constant &  & 5.716*** \\
&  &  & (0.315) \\
&  &  &  \\
& Observations & 74 & 74 \\ \hline
\multicolumn{4}{c}{Robust standard errors in parentheses} \\
\multicolumn{4}{c}{*** p<0.01, ** p<0.05, * p<0.1} \\
\end{tabular}

Thanks for any insights!

Bill

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/