<>
***
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" <[email protected]>
To: "Stata List" <[email protected]>
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/