Occbin estimation error

Hi everyone,

I am trying to estimate a fiscal semi-structural model with an occasional binding constraint on public expenditure that depends on the primary balance using the calib_smoother and I get the following error:

Unable to perform assignment because the left and right sides have a different number of elements.

On the other hand, when I try to use the estimation command I get the following error:

Piecewise linear Kalman filter: There was a problem in obtaining the likelihood.

I’d really appreciate if any of you could help me figure this out.
Best regards

model.mod (12.4 KB)
base.xlsx (16.0 KB)
set_params.mod (9.4 KB)
bayesian_est.mod (14.3 KB)
FISLAC_2_BRA_mode.mat (8.3 KB)

@jpfeifer I would appreciate any help you can provide, thank you very much!

Underlying the error is a bug. See dynare_estimation_init.m: make sure OccBin estimation can be run after... (!2135) · Merge requests · Dynare / dynare · GitLab

You can circumvent it by not having an OccBin simulation before the estimation/calib_smoother.