Page 1 of 1

Dummy Variable for time period

Posted: Mon Jan 31, 2011 7:38 am
by jriskg
Hi there

How would you create a dummy variable for a specific time period. I understand that @expand does it for a specific group but i've got structural issues with my data and need to create structural lags based upon dummy variables for a specific time period (e.g. 2006-2009). My independant is stock and dependant is gdp. I want to create dummy variables for stock.

Your help would be GREATLY appreciated.

Re: Dummy Variable for time period

Posted: Mon Jan 31, 2011 8:57 am
by EViews Gareth

Code: Select all

series dum = @year>2006 and @year <2009

Re: Dummy Variable for time period

Posted: Mon Jan 31, 2011 8:59 am
by jriskg
legend

Re: Dummy Variable for time period

Posted: Wed Feb 02, 2011 5:11 pm
by cap
Greetings,

Could you comment on how you might best specify a dummy for something like, 2006Q2 - 2009Q3 ?


Thanks,
-cap

Re: Dummy Variable for time period

Posted: Wed Feb 02, 2011 5:16 pm
by EViews Gareth

Code: Select all

series dum = @date>@dateval("2006q2") and @date<@dateval("2009q3")