Hi,
I have a quarterly workfile. I would like to generate a dummy variable for each date of my workfile.
I tried the following code:
for !j=2000 to 2014
for !i=1 to 4
dummy_{!j}Q{!i}=@recode(@date=@dateval("{!j}Q{!i}"),1,0)
next
next
The code does generate the series but they only have NAs.
Any idea?
Thanks a lot in advance for your help!!
Generate Dummy variables
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13600
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Generate Dummy variables
You're probably better off just using @expand(@date) where ever you want the dummies.
Who is online
Users browsing this forum: No registered users and 2 guests
