On Wed, 24 Mar 2010, Data Analytics Corp. wrote:
I have a time series data set that ranges from 1977Q1 to 2009Q4. I
want
to create a dummy variable for the recession quarters (1980Q1 - 1980Q3,
1981Q3 - 1982Q4, etc.) as defined by the NBER. How do I do this in Gretl?
series dum = (obs>=1980:1 && obs<=1980:3) || \
(obs>=1981:3 && obs<=1982:4)
Allin Cottrell