Page 1 of 1

Save Columns as Individual Objects

Posted: Fri Dec 23, 2011 12:08 am
by bm13
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.

Re: Save Columns as Individual Objects

Posted: Fri Dec 23, 2011 9:05 am
by EViews Gareth
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?

Code: Select all

for !i=1 to 1000 vector x!i = @columnextract(x, !i) next
where x is the name of your matrix.

Re: Save Columns as Individual Objects

Posted: Sun Dec 25, 2011 6:31 pm
by bm13
Thank you very much -- that worked perfectly. :)