Dummy Variable for time period

For technical questions regarding estimation of single equations, systems, VARs, Factor analysis and State Space Models in EViews. General econometric questions and advice should go in the Econometric Discussions forum.

Moderators: EViews Gareth, EViews Moderator

jriskg
Posts: 6
Joined: Thu Jan 27, 2011 10:32 am

Dummy Variable for time period

Postby jriskg » Mon Jan 31, 2011 7:38 am

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.

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13586
Joined: Tue Sep 16, 2008 5:38 pm

Re: Dummy Variable for time period

Postby EViews Gareth » Mon Jan 31, 2011 8:57 am

Code: Select all

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

jriskg
Posts: 6
Joined: Thu Jan 27, 2011 10:32 am

Re: Dummy Variable for time period

Postby jriskg » Mon Jan 31, 2011 8:59 am

legend

cap
Posts: 55
Joined: Fri Oct 17, 2008 11:47 am

Re: Dummy Variable for time period

Postby cap » Wed Feb 02, 2011 5:11 pm

Greetings,

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


Thanks,
-cap

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13586
Joined: Tue Sep 16, 2008 5:38 pm

Re: Dummy Variable for time period

Postby EViews Gareth » Wed Feb 02, 2011 5:16 pm

Code: Select all

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


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests