Hi,
I'm trying to create a program that works out a simple quarter on quarter change on a number of variables however I can't get the loop function to work fo some reason.
Here's the code:
for %v NEVI NEVJ NEVK NEVL
smpl 1990:01 2010:04
delete p%v
genr p%v = 100*(%v/%v(-1))-1)
next
I've only included a couple of variables here to demonstrate but it keeps coming back with an error message so I'm assuming I've made a mistake in the coding (or more than one mistake! :/)
Thanks in advance
Creating loops with different variables
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
Re: Creating loops with different variables
You have to use {} around %v.
for example: p{%v}
for example: p{%v}
Re: Creating loops with different variables
Brilliant, works fine.
Thanks
Thanks
Who is online
Users browsing this forum: No registered users and 2 guests
