5 Jul
2013
5 Jul
'13
3:12 p.m.
Dear all, can anyone tell me what is wrong with this mod-file? The error message in sim1 is: Attempted to access x(0,1); index must be a positive integer or logical. Error in model_joe_dynamic (line 65) rhs =y(15)*(1-params(12))*(1-x(it_-1, 2))*(1-x(it_-2, 1))*y(8)/T153; It seems as if for simul the preprocessor is not correctly transforming the model to have just one lead or lag as we are accessing x(it_ - 2). Using stoch_simul in contrast works. Best, Johannes -- Johannes Pfeifer Haußerstr. 29 72076 Tübingen Tel.: +49-(0)7071-6396184 Mobil.: +49-(0)170-6936820 Germany