Extracting a matrix to excel

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

strimar
Posts: 2
Joined: Mon Dec 23, 2013 9:00 am

Extracting a matrix to excel

Postby strimar » Thu Jan 09, 2014 2:10 pm

Hi,
Could you please help me with the following? I am trying to export several matrices from Eviews8 to Excel using:

Code: Select all

pagesave(type=excelxml, mode=update) "U:\myfolder\prova_matrix_export.xlsm" range="data!B3:AH5391" @keep dbmisiu_matrix_excel
but I get an error saying that the matrix is not a series. Is it possible to export a matrix?
If not do I have to transform the matrix into various series using “mtos”?

Unfortunately my workfile has to be on a quarterly frequency, but within it I have matrices with daily frequency. If I use “mtos” end up with the series with quarterly frequency. Consequently I lose the great majority of my data.

Thank you
Attachments
matrix_only.WF1
(1.28 MiB) Downloaded 116 times

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

Re: Extracting a matrix to excel

Postby EViews Gareth » Thu Jan 09, 2014 2:13 pm

The only way to write a matrix to an excel file is with matrix.write. Unfortunately it only creates .xls files, not .xlsx.

A better solution might be to create a daily page in your workfile and store the series there, rather than dealing with matrices at all.

strimar
Posts: 2
Joined: Mon Dec 23, 2013 9:00 am

Re: Extracting a matrix to excel

Postby strimar » Fri Jan 10, 2014 8:40 am

OK, thank you


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests