Page 1 of 1

Dummies in time series (years)

Posted: Tue Sep 22, 2009 7:41 am
by wolf61
Hello,
I think my question is pretty trivial: I've got a time series in years (1970-2008) and want to plug in dummies for two different periods (1973-1980 and 1989-1992). How can I get this?
Thanks for your help!

Re: Dummies in time series (years)

Posted: Tue Sep 22, 2009 8:15 am
by startz
Hello,
I think my question is pretty trivial: I've got a time series in years (1970-2008) and want to plug in dummies for two different periods (1973-1980 and 1989-1992). How can I get this?
Thanks for your help!

Code: Select all

ls y x (@year>=1973 and @year<=1980) (@year>=1989 and @year<=1992)