Exporting Panel Data Series and Residuals into Excel

For questions regarding programming in the EViews programming language.

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

pminv
Posts: 1
Joined: Wed Jul 29, 2015 3:31 am

Exporting Panel Data Series and Residuals into Excel

Postby pminv » Wed Jul 29, 2015 5:42 am

Hi everybody,

I need to export the results of panel regression, i.e. predicted and actual series and residuals for multiple countries into excel in an unstacked single country version. If one generates residuals after running panel data one gets all in one series in stacked version. I need the code to unstack it and export it to excel.

For instanse, for single regression it looks like: wfsave(type=excelxml) "c:\za.csv" @keep za_cds5y za_prcds5y za_resid

could you please explain me how one can do it for the whole panel?

Thanks in advance.

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

Re: Exporting Panel Data Series and Residuals into Excel

Postby EViews Gareth » Wed Jul 29, 2015 7:51 am

You'll have to use the pageunstack command to unstack the resid series into a pooled workfile page first, then save from the pooled workfile page.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests