Page 1 of 1

dummy variables

Posted: Sat Jul 28, 2012 4:31 am
by msh855
Hi all,

I want to create dummy variables conditional on some date events

e.g i have a sample of quarterly data from 2000 onwards and want to create a dummy that takes the value of 1 for the first quarter of 2002 and zero elsewhere

I am little puzzled on how i can do this in Eviews using a commands. What i do is i create a series with zero values and then edit the selected dates.

Can you please suggest a more efficient way that can be done in Eviews ? is there any equivalent of " series dummy=1 if date==2002q1 otherwise dummy=0"

Thanks

Re: dummy variables

Posted: Sat Jul 28, 2012 7:49 am
by startz

Code: Select all

series dummy = 0 smpl 2002q1 2002q1 dummy = 1 smpl @all

dummy variables

Posted: Sat Jul 28, 2012 10:48 am
by EViews Gareth
forums.eviews.com/viewtopic.php?f=4&t=3840

Re: dummy variables

Posted: Thu Aug 16, 2012 11:51 am
by Yamile
Hi,

I need help in order to create a dummy variable.

I have 3 variables and i need 2 dummy from them.

Thanks.

Re: dummy variables

Posted: Thu Aug 16, 2012 2:47 pm
by startz
You need to show us what you've done so far.