Page 1 of 1

Order of variables saved in FILENAME_forc_point*.mat-files

PostPosted: Tue Jun 27, 2017 1:37 pm
by Aldo
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,:,:) ?

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

PostPosted: Tue Jun 27, 2017 4:36 pm
by jpfeifer
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?

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

PostPosted: Wed Jun 28, 2017 12:15 am
by Aldo
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