| 1 |
@#include "fs2000_model.inc" |
| 2 |
|
| 3 |
stoch_simul(periods=200, order=1,irf=0); |
| 4 |
temp=oo_.endo_simul; |
| 5 |
%add measurement error |
| 6 |
oo_.endo_simul(strmatch('gy_obs',M_.endo_names,'exact'),:)=oo_.endo_simul(strmatch('gy_obs',M_.endo_names,'exact'),:)+0.05*randn(1,size(oo_.endo_simul,2)); |
| 7 |
oo_.endo_simul(strmatch('gp_obs',M_.endo_names,'exact'),:)=oo_.endo_simul(strmatch('gp_obs',M_.endo_names,'exact'),:)+0.05*randn(1,size(oo_.endo_simul,2)); |
| 8 |
datatomfile('fsdat_simul_uncorr_ME', {'gy_obs'; 'gp_obs'}); |
| 9 |
oo_.endo_simul(strmatch('gy_obs',M_.endo_names,'exact'),[7,199])=NaN; |
| 10 |
oo_.endo_simul(strmatch('gp_obs',M_.endo_names,'exact'),[151,199])=NaN; |
| 11 |
datatomfile('fsdat_simul_uncorr_ME_missing', {'gy_obs'; 'gp_obs'}); |
| 12 |
shock_mat=chol([1 0.5; 0.5 1])*0.05*randn(2,size(oo_.endo_simul,2)); |
| 13 |
oo_.endo_simul(strmatch('gy_obs',M_.endo_names,'exact'),:)=oo_.endo_simul(strmatch('gy_obs',M_.endo_names,'exact'),:)+shock_mat(1,:); |
| 14 |
oo_.endo_simul(strmatch('gp_obs',M_.endo_names,'exact'),:)=oo_.endo_simul(strmatch('gp_obs',M_.endo_names,'exact'),:)+shock_mat(2,:); |
| 15 |
datatomfile('fsdat_simul_corr_ME', {'gy_obs'; 'gp_obs'}); |
| 16 |
oo_.endo_simul(strmatch('gy_obs',M_.endo_names,'exact'),[7,199])=NaN; |
| 17 |
oo_.endo_simul(strmatch('gp_obs',M_.endo_names,'exact'),[151,199])=NaN; |
| 18 |
datatomfile('fsdat_simul_corr_ME_missing', {'gy_obs'; 'gp_obs'}); |
| 19 |
|
| 20 |
estimated_params; |
| 21 |
alp, 0.356; |
| 22 |
gam, 0.0085; |
| 23 |
del, 0.01; |
| 24 |
stderr e_a, 0.035449; |
| 25 |
stderr e_m, 0.008862; |
| 26 |
corr e_m, e_a, 0; |
| 27 |
stderr gp_obs, 1; |
| 28 |
stderr gy_obs, 1; |
| 29 |
//corr gp_obs, gy_obs,0; |
| 30 |
end; |
| 31 |
|
| 32 |
@#define mode_file_name="'fs2000_uncorr_ME/Output/fs2000_uncorr_ME_mode'" |
| 33 |
@#define data_file_name="fsdat_simul_uncorr_ME" |
| 34 |
|
| 35 |
@#include "fs2000_estimation_check.inc" |