Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Johannes Pfeifer
dynare
Commits
6183679f
Commit
6183679f
authored
Sep 04, 2013
by
Sébastien Villemot
Browse files
Merge pull request #465 from JohannesPfeifer/conditional_variance_decomp
Bugfix for conditional variance decomposition
parents
5d5f6257
c2e6feeb
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/dynare_estimation_1.m
View file @
6183679f
...
...
@@ -82,7 +82,7 @@ end
% Set sigma_e_is_diagonal flag (needed if the shocks block is not declared in the mod file).
M_
.
sigma_e_is_diagonal
=
1
;
if
estim_params_
.
ncx
||
~
isequal
(
nnz
(
M_
.
Sigma_e
),
length
(
M_
.
Sigma_e
))
if
estim_params_
.
ncx
||
any
(
nnz
(
tril
(
M_
.
Sigma_e
,
-
1
)
))
M_
.
sigma_e_is_diagonal
=
0
;
end
...
...
@@ -99,11 +99,6 @@ if ~isequal(estim_params_.ncx,nnz(tril(M_.Sigma_e,-1)))
end
end
M_
.
H_is_diagonal
=
1
;
if
estim_params_
.
ncn
||
~
isequal
(
nnz
(
M_
.
H
),
length
(
M_
.
H
))
M_
.
H_is_diagonal
=
0
;
end
% Set the correlation matrix of measurement errors if necessary.
if
~
isequal
(
estim_params_
.
ncn
,
nnz
(
tril
(
M_
.
H
,
-
1
)))
M_
.
Correlation_matrix_ME
=
diag
(
1.
/
sqrt
(
diag
(
M_
.
H
)))
*
M_
.
H
*
diag
(
1.
/
sqrt
(
diag
(
M_
.
H
)));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment