Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: series of regs over adjacent periods


From   "John D. Levendis" <john-levendis@uiowa.edu>
To   statalist <statalist@hsphsun2.harvard.edu>
Subject   st: series of regs over adjacent periods
Date   Tue, 30 Sep 2003 01:15:34 -0500

Hello,

I'm trying to perform a series of regressions pooled over adjacent years. For 
example, I'd like to do:

regress y x1 x2 if (year == 1980 | year == 1981)
regress y x1 x2 if (year == 1981 | year == 1982)
regress y x1 x2 if (year == 1982 | year == 1983)

I realize I could just do a whole bunch of statements like I have done above, 
but I've got a LOT of periods, and I figure there has to be a more economical 
way to do this.

Any suggestions would be appreciated. Thanks in advance.

Sincerely,

John

PS: Sorry for the long subject line, but I didn't know how else to describe my 
problem.



*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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