multiple matrix copy data

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator

nizinamazowiecka
Posts: 14
Joined: Wed Feb 06, 2013 4:39 pm

multiple matrix copy data

Postby nizinamazowiecka » Mon Aug 22, 2016 2:17 pm

Hi,
I have 6 matrices in my workfile with names (a1, a2, ..., a5, and b).
Matrices a1-a5 contain data, b is empty


Let's assume:
svector x= @wsplit("a1 a2 a3 a4 a5")

I would like to create a loop on x so I can copy some elements of matrices a1-a5 (but referencing x, not a1-a5 directly) into b

Somethin along the lines:
for "all x elements"
"matrix in x"(1,2) = matrix_b(1,3)
next

and I'm looping all elements of x

How to do it?

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13312
Joined: Tue Sep 16, 2008 5:38 pm

Re: multiple matrix copy data

Postby EViews Gareth » Mon Aug 22, 2016 2:27 pm

Follow us on Twitter @IHSEViews


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 18 guests