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]

Re: st: suppressing covariates in regression outputs


From   Tim Wade <wadetj@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: suppressing covariates in regression outputs
Date   Wed, 2 Feb 2011 15:42:59 -0500

There are many ways to do this. See  -help estout- (user-written by
Ben Jann, see: http://repec.org/bocode/e/estout/) and -help estimates-
for many more ways to customize your output. Here is one example:

sysuse auto.dta
quietly regress   price mpg headroom weight gear_ratio foreign
estimates table, keep(mpg) b p

you could also display related models in one table for easier comparison
sysuse auto.dta
quietly regress   price mpg headroom weight gear_ratio foreign
estimates store m1
quietly regress   price mpg
estimates store m2
estimates table m1 m2, keep(mpg) b p

Tim

On Wed, Feb 2, 2011 at 3:05 PM, Nathan Hutto <nathandavidhutto@gmail.com> wrote:
> Hello,
>
> I have an analysis where I'm running numerous regressions with a ton
> of covariates. I'm often re-running these regressions after making
> some change to my data. I am generally only interested in the
> coefficient on one independent variable (which I list first in the
> command - reg depvar indepvars - ). Is there a way to suppress the
> other coefficients on the output so that I don't have to look at them
> when scrolling through my output?
>
> Thanks,
> Nathan
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>

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


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