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.

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

From |
"Schmidt, William" <wschmidt@hbs.edu> |

To |
"statalist@hsphsun2.harvard.edu" <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/

- Prev by Date:
**Re: st: RE: Re: xtmixed with log-transfered dependent variable: back to non-log on margins and marginsplot** - Next by Date:
**st: Combining and repeating value from another dataset** - Previous by thread:
**st: foreach/forvalue-loop** - Next by thread:
**st: Combining and repeating value from another dataset** - Index(es):