good afternoon !
I am new to programming in eviews and I have a rather simple question. I want to generate a series x that takes the value 1 if y is 0 and 0 otherwise. I run the following code but I get an error:( I will appreciate a lot if anybody can offer some feedback...
for i=1:1910
if y(i)=0
genr x(i)=1
else
genr x(i)=0
endif
Thanks a lot
Selin
generating series
Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13317
- Joined: Tue Sep 16, 2008 5:38 pm
Re: generating series
Ive made it thanks so much! have a great day!
Who is online
Users browsing this forum: No registered users and 25 guests