Statalist


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

st: Re: estimating reg coefficients for subgroups


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: Re: estimating reg coefficients for subgroups
Date   Sat, 25 Apr 2009 10:41:28 +0200

<>

***
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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index