Hi. I am using Eviews 6.
I am working with 10 separate objects. Each object has 1000 observations, and is one column wide. I have grouped these together to form a matrix that is 1000 tall by 10 wide. I want to transpose the matrix to 10x1000, and then create 1000 separate objects.
I read through the Eviews Programming Guide and a few other threads, but to no avail. Any help would be greatly appreciated.
Thank you.
Save Columns as Individual Objects
Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Save Columns as Individual Objects
If I am reading this correctly, you have a single matrix that is (10x1000), and you want to create 1000 separate vectors that contain each column of the matrix?
where x is the name of your matrix.
Code: Select all
for !i=1 to 1000
vector x!i = @columnextract(x, !i)
next
Re: Save Columns as Individual Objects
Thank you very much -- that worked perfectly. :)
Who is online
Users browsing this forum: No registered users and 2 guests
