trap for too many parameters to be estimated w.r.t. affected moments.

time-shift
Marco Ratto 2011-06-06 16:36:39 +02:00
parent 664d17ba24
commit e5c3decbc1
1 changed files with 5 additions and 0 deletions

View File

@ -80,6 +80,11 @@ if info(1)==0,
derivatives_info.DYss=dYss;
if init,
indJJ = (find(max(abs(JJ'))>1.e-8));
if length(indJJ)<nparam,
disp('The number of moments with non-zero derivative is smaller than the number of parameters')
disp('Either increase ar or reduce the list of estimated parameters')
error ,
end
indH = (find(max(abs(H'))>1.e-8));
indLRE = (find(max(abs(gp'))>1.e-8));
end