Statalist


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

Re: st: Re: estimating reg coefficients for subgroups


From   Shehzad Ali <drshehzad_ali@yahoo.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Re: estimating reg coefficients for subgroups
Date   Sat, 25 Apr 2009 01:56:32 -0700 (PDT)

Thanks, Martin. As always, spot on!

Shehzad



----- Original Message ----
> From: Martin Weiss <martin.weiss1@gmx.de>
> To: statalist@hsphsun2.harvard.edu
> Sent: Saturday, April 25, 2009 9:41:28 AM
> Subject: st: Re: estimating reg coefficients for subgroups
> 
> <>
> 
> ***
> sysuse auto, clear
> reg pr we rep tr tu disp
> 
> bys for: reg pr we rep tr tu disp
> ***
> 
> If you want to capture output from this, look at -statsby-
> 
> 
> HTH
> Martin
> _______________________
> ----- Original Message ----- From: "Shehzad Ali" 
> To: "Stata List" 
> Sent: Saturday, April 25, 2009 10:37 AM
> Subject: st: estimating reg coefficients for subgroups
> 
> 
> > Hi listers,
> > 
> > I am running the following regression model:
> > 
> > reg y x1 x2 x3
> > 
> > The model is run for the whole sample and then I want to predict the 
> regression coefficients for each subgroup defined using the variable -subgroup-.
> > 
> > Can someone suggest the best way to estimate regression coefficients for 
> subgroups after running the model for the whole sample?
> > 
> > Thank you,
> > Shehzad
> > 
> > 
> > 
> > 
> > *
> > *  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/



      

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index