%here method=1 is used, whereas all other calls of lyapunov_symm use method=2. The reason is that T and U are persistent, and input matrix A is the same, so using option 2 for all the rest of iterations spares a lot of computing time while not repeating Schur every time
indzeros=find(abs(Eyy0)<1e-12);%find values that are numerical zero
Eyy0(indzeros)=0;
Eyy0(indzeros)=0;
ifuseautocorr
sdy=sqrt(diag(Eyy0));%theoretical standard deviation
sdy=sdy(stationary_vars);
sy=sdy*sdy';%cross products of standard deviations
end
...
...
@@ -289,13 +296,13 @@ if ~no_identification_moments
else
dMOMENTS(obs_nbr+1:obs_nbr+obs_nbr*(obs_nbr+1)/2,jp)=dyn_vech(dEyy0);%focus only on VAROBS variables