I am using the @recode command in the following way:
smpl 1997 2019
x=@recode(x=na,y/y(+1)*x(+1),x)
However, I would like to use the @recode command so that it begins with 2019, not 1997, given that I would like to replace "x=na" with a term that is calculated using values from the next year. Is this possible? Is there a better command to use than @recode?
Thanks!
Possible @recode option
Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13307
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Possible @recode option
All series generation commands can be told to run backwards using the genr(r) command:
Code: Select all
genr(r) x=@recode(x=na,y/y(+1)*x(+1),x)
Follow us on Twitter @IHSEViews
Who is online
Users browsing this forum: No registered users and 20 guests