Add comment why use of old correlation matrix from previous draw is correct and revert change
Due to only using the diagonal of Sigma_e and the correlation matrix having ones on the diagonal, the diagonal entries of the covariance matrix are correctly built from recent draw. Later, when using the new draw for the correlations, only the correctly updated diagonal entries of Sigma_e are used.time-shift
parent
74ef1aa7ed
commit
ebc7d6f67a
|
@ -83,7 +83,7 @@ offset = nvx+nvn;
|
|||
|
||||
% setting shocks covariances
|
||||
if ~isempty(M.Correlation_matrix)
|
||||
Sigma_e = diag(sqrt(diag(Sigma_e)))*M.Correlation_matrix*diag(sqrt(diag(Sigma_e)));
|
||||
Sigma_e = diag(sqrt(diag(Sigma_e)))*M.Correlation_matrix*diag(sqrt(diag(Sigma_e))); % use of old correlation matrix is correct due to the diagonal structure and later only using the hence correctly updated diagonal entries of Sigma_e
|
||||
end
|
||||
if ncx
|
||||
corrx = estim_params.corrx;
|
||||
|
|
Loading…
Reference in New Issue