How to load the posterior mean when using the osr procedure?

Dear all,

I’m trying to load the posterior mean for the estimated parameters and shock stderr in another .mod file where I’m going to use the osr procedure. How can I do this?

Thank you for answers.

1 Like

You should be able to use save_params_and_steady_state
and

See the manual for details

Dear jpfeifer,

thank you for your help. I have tried to use the following command to run estimated parameters when using the osr procedure:
xr=load(‘Results.mat’);
M_.params=xr.M_.params;

My question is, where the above command has to be placed?

CASE 1:

optim_weights;
pi_c 0.2;
y_hat 1;
end;

osr_params rho_r phi_pi phi_y;

rho_r =0.25;
phi_pi = 0.25;
phi_y = 0.25;

xr=load(‘OriginalResults2.mat’);
M_.params=xr.M_.params;
osr (nograph) pi_c pi_hat y_hat;

CASE 2:
xr=load(‘OriginalResults2.mat’);
M_.params=xr.M_.params;

optim_weights;
pi_c 0.2;
y_hat 1;
end;

osr_params rho_r phi_pi phi_y;

rho_r =0.25;
phi_pi = 0.25;
phi_y = 0.25;

osr (nograph) pi_c pi_hat y_hat;

Case 1 of course. In case 2 the setting of the parameters after loading the previous ones would overwrite what you loaded.