Page 1 of 1
How to load the posterior mean when using the osr procedure?
Posted:
Wed May 27, 2015 12:50 pm
by econ86
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.
Re: How to load the posterior mean when using the osr proced
Posted:
Wed May 27, 2015 4:37 pm
by jpfeifer
You should be able to use
- Code: Select all
save_params_and_steady_state
and
- Code: Select all
load_params_and_steady_state
See the manual for details
Re: How to load the posterior mean when using the osr proced
Posted:
Tue Jun 02, 2015 4:23 pm
by econ86
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;
Re: How to load the posterior mean when using the osr proced
Posted:
Wed Jun 03, 2015 11:23 am
by jpfeifer
Case 1 of course. In case 2 the setting of the parameters after loading the previous ones would overwrite what you loaded.