Hello,
I have a rowvector(50) with correlation values. I would like to take the values of specified columns from this rowvector and place in a new vector. For instance, I would like to take values from columns 5,7,10,25 and 50. What is the best way to achieve that? Thank you.
Extracting values from the vector
Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13319
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Extracting values from the vector
Code: Select all
newvector(1) = oldvector(5)
Follow us on Twitter @IHSEViews
Re: Extracting values from the vector
Thank you Gareth, but how to make newvector(5) filled with values from five columns of oldvector(50)? Let's say column 5 has a value of 0.5, column 7 has a value of 0.3 and etc. I would like my newvector(5) to have values 0.5,0.3, ....). Thank you
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13319
- Joined: Tue Sep 16, 2008 5:38 pm
Who is online
Users browsing this forum: No registered users and 21 guests