| 1 |
@#include "fs2000ns_model.inc" |
| 2 |
|
| 3 |
% Under Octave, the default seed leads to a generated dataset that makes |
| 4 |
% fs2000ns_corr_ME.mod and fs2000ns_corr_ME_missing.mod fail (due to a large |
| 5 |
% difference between univariate and multivariate diffuse filters). |
| 6 |
if isoctave |
| 7 |
set_dynare_seed(2); |
| 8 |
end |
| 9 |
|
| 10 |
stoch_simul(periods=200, order=1,irf=0); |
| 11 |
temp=oo_.endo_simul; |
| 12 |
%add measurement error |
| 13 |
oo_.endo_simul(strmatch('Y_obs',M_.endo_names,'exact'),:)=oo_.endo_simul(strmatch('Y_obs',M_.endo_names,'exact'),:)+0.05*randn(1,size(oo_.endo_simul,2)); |
| 14 |
oo_.endo_simul(strmatch('P_obs',M_.endo_names,'exact'),:)=oo_.endo_simul(strmatch('P_obs',M_.endo_names,'exact'),:)+0.05*randn(1,size(oo_.endo_simul,2)); |
| 15 |
datatomfile('fs_ns_dat_simul_uncorr_ME', {'Y_obs'; 'P_obs'}); |
| 16 |
oo_.endo_simul(strmatch('Y_obs',M_.endo_names,'exact'),[7,199])=NaN; |
| 17 |
oo_.endo_simul(strmatch('P_obs',M_.endo_names,'exact'),[151,199])=NaN; |
| 18 |
datatomfile('fs_ns_dat_simul_uncorr_ME_missing', {'Y_obs'; 'P_obs'}); |
| 19 |
shock_mat=chol([1 0.5; 0.5 1])*0.05*randn(2,size(oo_.endo_simul,2)); |
| 20 |
oo_.endo_simul(strmatch('Y_obs',M_.endo_names,'exact'),:)=oo_.endo_simul(strmatch('Y_obs',M_.endo_names,'exact'),:)+shock_mat(1,:); |
| 21 |
oo_.endo_simul(strmatch('P_obs',M_.endo_names,'exact'),:)=oo_.endo_simul(strmatch('P_obs',M_.endo_names,'exact'),:)+shock_mat(2,:); |
| 22 |
datatomfile('fs_ns_dat_simul_corr_ME', {'Y_obs'; 'P_obs'}); |
| 23 |
oo_.endo_simul(strmatch('Y_obs',M_.endo_names,'exact'),[7,199])=NaN; |
| 24 |
oo_.endo_simul(strmatch('P_obs',M_.endo_names,'exact'),[151,199])=NaN; |
| 25 |
datatomfile('fs_ns_dat_simul_corr_ME_missing', {'Y_obs'; 'P_obs'}); |
| 26 |
|
| 27 |
estimated_params; |
| 28 |
alp, 0.33; |
| 29 |
gam, 0.0; |
| 30 |
del, 0.02; |
| 31 |
stderr e_a, 0.014; |
| 32 |
stderr e_m, 0.005; |
| 33 |
corr e_m, e_a, 0; |
| 34 |
stderr P_obs, 0.05; |
| 35 |
stderr Y_obs, 0.05; |
| 36 |
//corr gp_obs, gy_obs,0; |
| 37 |
end; |
| 38 |
|
| 39 |
@#define mode_file_name="'fs2000ns_uncorr_ME/Output/fs2000ns_uncorr_ME_mode'" |
| 40 |
@#define data_file_name="fs_ns_dat_simul_uncorr_ME" |
| 41 |
|
| 42 |
@#include "fs2000ns_estimation_check.inc" |
| 43 |
|