[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: How to 'predict' constant by region?
Dear Maarten, Eva, and Richard,
thank you very much for all your help - it works very well!
All the best to all of you!
--
Galina An
Assistant Professor
Economics Department
Kenyon College
======================================
At 11:01 PM 8/6/2008, Galina An wrote:
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?
*
* 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/