![]() |
From | Richard Williams <Richard.A.Williams.5@ND.edu> |
To | statalist@hsphsun2.harvard.edu, statalist@hsphsun2.harvard.edu |
Subject | Re: st: How to 'predict' constant by region? |
Date | Thu, 07 Aug 2008 09:24:14 -0400 |
At 11:01 PM 8/6/2008, Galina An wrote:
With the 2nd by command, you are not rerunning all the separate regressions. Instead, the gen command just picks up the constant for the last region's regression.Dear statalist users, I was wondering if anybody encountered the following problem: when I run the following code, I need to save constants for different regions: by region: reg migration q1 q2 q3 by region: gen constant=_b[_cons] However, I get the same constant for all regions. Can anybody give me a hint?
© Copyright 1996–2025 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |