| 1 |
//File testing error message if initial state vector is not positive definite |
| 2 |
|
| 3 |
@#include "first_spec_common.inc" |
| 4 |
|
| 5 |
varobs b ca; |
| 6 |
|
| 7 |
shocks; |
| 8 |
var eeps = 0.04^2; |
| 9 |
var nnu = 0.03^2; |
| 10 |
var b = 0.01^2; |
| 11 |
var ca = 0.01^2; |
| 12 |
end; |
| 13 |
|
| 14 |
stoch_simul(order=3,periods=200, irf=0); |
| 15 |
send_endogenous_variables_to_workspace; |
| 16 |
|
| 17 |
save('my_data_MCMC.mat','ca','b'); |
| 18 |
|
| 19 |
options_.pruning=true; |
| 20 |
options_.particle.pruning=true; |
| 21 |
options_.particle.number_of_particles=500; |
| 22 |
|
| 23 |
estimation(datafile='my_data_MCMC.mat',order=2,mh_replic=100,filter_algorithm=sis,nonlinear_filter_initialization=2 |
| 24 |
,mode_compute=0 %don't compute mode |
| 25 |
,mcmc_jumping_covariance=identity_matrix %use identity matrix |
| 26 |
,cova_compute=0 %tell program that no covariance matrix was computed |
| 27 |
,bayesian_irf,moments_varendo,consider_all_endogenous); |