dummy variables

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt

msh855
Posts: 9
Joined: Mon Jul 02, 2012 11:34 am

dummy variables

Postby msh855 » Sat Jul 28, 2012 4:31 am

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

startz
Non-normality and collinearity are NOT problems!
Posts: 3775
Joined: Wed Sep 17, 2008 2:25 pm

Re: dummy variables

Postby startz » Sat Jul 28, 2012 7:49 am

Code: Select all

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

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

dummy variables

Postby EViews Gareth » Sat Jul 28, 2012 10:48 am

forums.eviews.com/viewtopic.php?f=4&t=3840
Follow us on Twitter @IHSEViews

Yamile
Posts: 1
Joined: Thu Aug 16, 2012 11:36 am

Re: dummy variables

Postby Yamile » Thu Aug 16, 2012 11:51 am

Hi,

I need help in order to create a dummy variable.

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

Thanks.

startz
Non-normality and collinearity are NOT problems!
Posts: 3775
Joined: Wed Sep 17, 2008 2:25 pm

Re: dummy variables

Postby startz » Thu Aug 16, 2012 2:47 pm

You need to show us what you've done so far.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 40 guests