Hello,
I want to standardize all variables in the following way:
series std_inflation= (inflation-@mean(inflation))/@stdev(inflation)
Is there any command, which can be used to do this foreach (and all) series I have in my workfile at once?
Thanks in advance!
Jelena
Loop - foreach series
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Loop - foreach series
Code: Select all
%list = @wlookup("*", "series")
for %j {%list}
series std_{%j}= ({%j}-@mean({%j}))/@stdev({%j})
next
Re: Loop - foreach series
Hello,
thanks for your response!
I just started using Eviews...
When I use:
%list = @wlookup("*", "series")
there is no error but I can not see any changes in the workfile.
After the next command:
for %j {%list}
Eviews shows following Error Message:
Flow of control statement executed from the command line
Then the next command:
series std_{%j}= ({%j}-@mean({%j}))/@stdev({%j})
gives the Error: %J is not a valitd string or scalar name.
What did you do wrong?
Thanks in advance!
Jelena
thanks for your response!
I just started using Eviews...
When I use:
%list = @wlookup("*", "series")
there is no error but I can not see any changes in the workfile.
After the next command:
for %j {%list}
Eviews shows following Error Message:
Flow of control statement executed from the command line
Then the next command:
series std_{%j}= ({%j}-@mean({%j}))/@stdev({%j})
gives the Error: %J is not a valitd string or scalar name.
What did you do wrong?
Thanks in advance!
Jelena
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Loop - foreach series
You have to make an EViews program (File->New Program)
Re: Loop - foreach series
Thank you! Now it works :)
Who is online
Users browsing this forum: No registered users and 2 guests
