To analyze my data I have to import a .por-file into Eviews, which works just fine. But how can I set all missing values(in all series to NA? EViews Illustrated (p. 56) recommends to use --> Quick/Generate Series...--> Generate Series by Equation (or alternatively @recode). Trouble is, I can't select all the data in one procedure (a wild card (* or ????) doesn't work.. Is there a possibility to recode all my series in the work file at once?
Yours gratefully,
Lama
recoding data from all series simultaneously?
Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13401
- Joined: Tue Sep 16, 2008 5:38 pm
Re: recoding data from all series simultaneously?
There isn't an easy way to do this.
Best thing to do is to write a quick for loop in a program that would loop through your series and recode them one at a time.
Something like:
Where you fill in the @recode command with the recoding you want to do.
Best thing to do is to write a quick for loop in a program that would loop through your series and recode them one at a time.
Something like:
Code: Select all
group allvars *
allvars.drop resid
for !i=1 to allvars.count
%name = allvars.@seriesname(!i)
{%name} = @recode(....)
next
Follow us on Twitter @IHSEViews
Re: recoding data from all series simultaneously?
Thanks, it works great! You really saved my day!
Who is online
Users browsing this forum: Google [Bot] and 2 guests