Please try a calibrated version of the model first. See Remark 2 (Using stoch_simul before Estimation) in Pfeifer(2013): "A Guide to Specifying Observation Equations for the Estimation of DSGE Models"
https://sites.google.com/site/pfeiferecon/Pfeifer_2013_Observation_Equations.pdf.
Focus on equation 17 and the model-local variables involved in it. If I understand it correctly, you have
- Code: Select all
#rsss=1/(ebs*beta);
#rlss=(rsss*ebs)/ebbarl;
But ebs is an exogenous variable that is mean 0, so you are dividing by 0 and rsss will be infinity. rlss then has infinity divided by infinity, resulting in NaN