[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: outreg
William Buchanan <email@example.com>
Re: st: outreg
Tue, 18 Jun 2013 15:30:47 -0700
Every time you fit a regression model you are replacing the macros, matrices, and scalars that Stata stores from the regression. When you run outreg2 (a user-written program available from SSC which you are asked to identify, as well as provide any relevant version information for that and Stata [if not using Stata 12 and soon Stata 13]), it is formatting the output from the results that are currently stored in memory. You need to run -outreg2- after each model and use the append option to add the new results to your output. I typically use the -estout- suite of packages, which allows you to use -eststo- or -estimates store- and then recall the specific models that you've stored to create the output you are interested in.
On Jun 18, 2013, at 3:08 PM, Mavilde Modesto <firstname.lastname@example.org> wrote:
> Could you please help me.
> I have just run three regressions: OLS, Within and xtabond2 and I would like
> to get a table to compare the results.
> I have written the command :
> .outreg2 using mainregs, dec(4) sortvar(logVabpcPr95 l.logVabpcPr95
> logInvPubpcpr95 logProdutivPr95) keep(logVabpcPr95 l.logVabpcPr95
> logInvPubpcpr95 logProdutivPr95) nocons/*
> */ word label addnote(Source: Own
> computations; Greene, 2008) replace ctitle(OLS Fixed Effects GMM) /*
> */ adds()
> And the Stata 12 only presents the last regression I have made and doesn’t
> present all variables I have used.
> Could you help me? What am I doing wrong?
> Thanking you in advance,
> M. Santos
> * 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/
* For searches and help try: