Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: outreg2: appending Poisson regression with different DVs


From   "Schmidt, William" <[email protected]>
To   "[email protected]" <[email protected]>
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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index