Hi professor, I was running a ramsey and came across the error saying:
Index exceeds the number of array elements. Index must not exceed
50.
Error in model.static_resid_tt (line 25)
T(8) = y(77)*T(7);
Error in model.static_resid (line 19)
T = model.static_resid_tt(T, y, x, params);
Error in model.static (line 4)
residual = model.static_resid(T, y, x, params, true);
Error in evaluate_static_model (line 69)
residuals = feval(fh_static,ys,exo_ss,params);
Error in evaluate_steady_state_file (line 108)
[residuals, check] = evaluate_static_model(ys, exo_ss, params, M, options);
Error in evaluate_steady_state (line 254)
[ys,params,info] = evaluate_steady_state_file(ys_init,exo_ss,M, options,steadystate_check_flag);
Error in steady_ (line 55)
[steady_state,params,info] = evaluate_steady_state(oo_.steady_state,M_,options_,oo_,~options_.steadystate.nocheck);
Error in steady (line 80)
[oo_.steady_state,M_.params,info] = steady_(M_,options_,oo_);
Error in model.driver (line 916)
steady;
Error in dynare (line 281)
evalin(‘base’,[fname ‘.driver’]);
How can I solve this problem? Thank you very much.