Hi
If nspred is number of predetermined variables in the state vector defined in set_state_space.m as dr.nspred = sum(kstate(:,2) <= M_.maximum_endo_lag+1);
Can nspred then be larger than npred, i.e. the total number of predetermined variables (=nboth + only predetermined)? , i.e.in dynare_estimation_1.m we have: bayestopt_.restrict_columns = [ic; length(k2)+(1:nspred-npred)']; but the differnce ia then not supposed to be larger than 0 and the second term in the square brackets should then never yield anything other than zero length vector so it appears redundant - or am I missing something.