I am now facing error of dseries::subsref

jpdat.mod (22.1 KB) jpmodel5.mod (12.6 KB)
Hi all.
I am now facing error of follow. Anyone help to solve that error…!
Estimation results and log is here.
jpmodel5.log (64.8 KB)

Error: dseries/subsref (row 212)
dseries::subsref: Indices are out of bounds! Subsample cannot end
after 152Y.

Error: makedataset (row 253)
DynareDataset = DynareDataset(FIRSTOBS:lastobs);

Error: dynare_estimation_init (row 553)
[dataset_, dataset_info, newdatainterfaceflag] =
makedataset(options_, options_.dsge_var*options_.dsge_varlag,
gsa_flag);

Error: evaluate_smoother (row 64)
[dataset_,dataset_info,xparam1, hh, M_, options_, oo_,
estim_params_,bayestopt_] = dynare_estimation_init(var_list,
M_.fname, [], M_, options_, oo_, estim_params_, bayestopt_);

Error: shock_decomposition (row 87)
[oo_, M_, ~, ~, Smoothed_Variables_deviation_from_mean] =
evaluate_smoother(parameter_set, varlist, M_, oo_, options_,
bayestopt_, estim_params_);

Error: jpmodel5.driver (row 847)
oo_ =
shock_decomposition(M_,oo_,options_,var_list_,bayestopt_,estim_params_);

Error: dynare (row 293)
evalin('base',[fname '.driver']) ;

kazumi

Dear all,
refer to other articles, I try setting nobs under 152 and then nobs=148 is hit.
why 148 is accepted estimating? If there combine first_obs=5, 152-5=147 will be accept and 148 is reject.

I want to know why above utters.
thank you.

This is a Dynare design problem. Put options_.nobs=NaN; right before the call to shock_decomposition