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
dummy variables
Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt
-
- Non-normality and collinearity are NOT problems!
- Posts: 3775
- Joined: Wed Sep 17, 2008 2:25 pm
Re: dummy variables
Code: Select all
series dummy = 0
smpl 2002q1 2002q1
dummy = 1
smpl @all
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13317
- Joined: Tue Sep 16, 2008 5:38 pm
Re: dummy variables
Hi,
I need help in order to create a dummy variable.
I have 3 variables and i need 2 dummy from them.
Thanks.
I need help in order to create a dummy variable.
I have 3 variables and i need 2 dummy from them.
Thanks.
-
- Non-normality and collinearity are NOT problems!
- Posts: 3775
- Joined: Wed Sep 17, 2008 2:25 pm
Re: dummy variables
You need to show us what you've done so far.
Who is online
Users browsing this forum: No registered users and 40 guests