SO I've had a good long look through this forum and the help files and I cannot find how to loop through an svector (I have v little prior programming experience). I can see several references to doing it so obviously it can be done and doing it for some appears obvious!
Please could some-one provide a simple of example of the programming syntax for doing this?
Much obliged.
RW
Looping Svectors
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13583
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Looping Svectors
What do you mean by looping through an svector?
-
Redwing153
- Posts: 30
- Joined: Sat May 30, 2015 5:10 am
Re: Looping Svectors
I think I mean using it in a program to create string variables on which I can perform operations, in turn looping through each row in the vector (which holds a Bloomberg ticker)
What I'd really like to be able to do is create a string object from an alpha series or even a text object, but I understand that isn't possible as I keep getting errors, or turning my string into a text object.
So I'm focusing on svectors to do the job as I think I can use @convert on an alpha series to create one.
I'm essentially trying to achieve something very similar to this chap:
http://forums.eviews.com/viewtopic.php? ... tor#p38702
However my mediocre programming skills are letting me down..
thanks
RW
What I'd really like to be able to do is create a string object from an alpha series or even a text object, but I understand that isn't possible as I keep getting errors, or turning my string into a text object.
So I'm focusing on svectors to do the job as I think I can use @convert on an alpha series to create one.
I'm essentially trying to achieve something very similar to this chap:
http://forums.eviews.com/viewtopic.php? ... tor#p38702
However my mediocre programming skills are letting me down..
thanks
RW
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13583
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Looping Svectors
You're probably best off using the @wjoin function to convert the svector into a space delimited list that you can then use in the loop.
Who is online
Users browsing this forum: No registered users and 2 guests
