Order of variables saved in FILENAME_forc_point*.mat-files

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Order of variables saved in FILENAME_forc_point*.mat-files

Postby Aldo » Tue Jun 27, 2017 1:37 pm

I want to use the saved forecasts across draws in the metropolis-subfolder in the FILENAME_forc_point*.mat-files.
I see it has three dimentions, the fisrt one is equal to number of variables declared and i want to know if it is in the same order of variables declared in .mod, that is,
if I declare in .mod:

var
z
x
y
...

Can I identify like this:

forecast_z = stock(1,:,:)
forecast_x = stock(2,:,:)
forecast_y = stock(3,:,:) ?
Aldo
 
Posts: 56
Joined: Fri Aug 07, 2015 4:47 pm

Re: Order of variables saved in FILENAME_forc_point*.mat-fil

Postby jpfeifer » Tue Jun 27, 2017 4:36 pm

You should verify this for your application. But as far as I can see, the ordering for the forecasts is in declaration order. Does this coincide with your observations?
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Order of variables saved in FILENAME_forc_point*.mat-fil

Postby Aldo » Wed Jun 28, 2017 12:15 am

I just verified and it is in the same order of variables declared in .mod.

I compared oo_.PointForecast.Mean with mean(squeeze(stock(i,:,:))) and they are same depending on variable.

Thanks a lot dear jpfeifer!!

Cheers

Aldo
Aldo
 
Posts: 56
Joined: Fri Aug 07, 2015 4:47 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 5 guests