Merge pull request #952 from JohannesPfeifer/ident_lag_fix
Update computation of non-zero moments within loop that increases num…time-shift
commit
c639e4a075
|
@ -97,6 +97,7 @@ if info(1)==0,
|
||||||
derivatives_info.DOm=dOm;
|
derivatives_info.DOm=dOm;
|
||||||
derivatives_info.DYss=dYss;
|
derivatives_info.DYss=dYss;
|
||||||
evalin('caller',['options_ident.ar=',int2str(nlags),';']);
|
evalin('caller',['options_ident.ar=',int2str(nlags),';']);
|
||||||
|
indJJ = (find(max(abs(JJ'),[],1)>1.e-8));
|
||||||
end
|
end
|
||||||
if length(indJJ)<nparam,
|
if length(indJJ)<nparam,
|
||||||
disp('The number of moments with non-zero derivative is smaller than the number of parameters')
|
disp('The number of moments with non-zero derivative is smaller than the number of parameters')
|
||||||
|
|
Loading…
Reference in New Issue