| 1 |
// See fs2000.mod in the examples/ directory for details on the model |
| 2 |
// tests heteroskedastic filter/smoother |
| 3 |
// includes lagged exogenous variable introduced by preprocessor |
| 4 |
|
| 5 |
@#include "fs2000_het_model.inc" |
| 6 |
|
| 7 |
shocks; |
| 8 |
var e_a; stderr 0.014; |
| 9 |
var e_m; stderr 0.005; |
| 10 |
end; |
| 11 |
|
| 12 |
steady; |
| 13 |
|
| 14 |
check; |
| 15 |
stoch_simul(order=1,loglinear); |
| 16 |
forecast; |
| 17 |
|
| 18 |
options_.solve_tolf = 1e-12; |
| 19 |
|
| 20 |
heteroskedastic_shocks; |
| 21 |
var e_b; |
| 22 |
periods 100:120; |
| 23 |
values 0.01; |
| 24 |
|
| 25 |
var e_a; |
| 26 |
periods 100:120; |
| 27 |
scales 0; |
| 28 |
end; |
| 29 |
|
| 30 |
estimation(order=1,datafile='../fsdat_simul',first_obs=10,nobs=182,silent_optimizer,mode_compute=5,loglinear,mh_replic=0,smoother,filtered_vars,forecast=8,filter_step_ahead=[1:8],consider_all_endogenous,heteroskedastic_filter); |
| 31 |
|
| 32 |
if M_.heteroskedastic_shocks.Qscale(strmatch('e_a',M_.exo_names,'exact'),91)~=0 && M_.heteroskedastic_shocks.Qscale(strmatch('e_b',M_.exo_names,'exact'),91)~=0.01 |
| 33 |
error('first_obs is incorrectly handled.') |
| 34 |
end |