Bugfix in correlation_mc_analysis
Closes #290 and makes #314 obsolete as we store both auto- and cross-correlationstime-shift
parent
a403d324dc
commit
f995f3da90
|
@ -4586,7 +4586,8 @@ where @var{THEORETICAL_MOMENT} is one of the following:
|
||||||
Variance-covariance of endogenous variables
|
Variance-covariance of endogenous variables
|
||||||
|
|
||||||
@item correlation
|
@item correlation
|
||||||
Autocorrelation of endogenous variables
|
Auto- and cross-correlation of endogenous variables. Fields are vectors with correlations from 1 up to order @code{options_.ar}
|
||||||
|
|
||||||
|
|
||||||
@item VarianceDecomposition
|
@item VarianceDecomposition
|
||||||
Decomposition of variance@footnote{When the shocks are correlated, it
|
Decomposition of variance@footnote{When the shocks are correlated, it
|
||||||
|
|
|
@ -49,9 +49,9 @@ if isfield(oo_,[TYPE 'TheoreticalMoments'])
|
||||||
eval(['temporary_structure = oo_.' TYPE 'TheoreticalMoments.dsge;'])
|
eval(['temporary_structure = oo_.' TYPE 'TheoreticalMoments.dsge;'])
|
||||||
if isfield(temporary_structure,'correlation')
|
if isfield(temporary_structure,'correlation')
|
||||||
eval(['temporary_structure = oo_.' TYPE 'TheoreticalMoments.dsge.correlation.Mean;'])
|
eval(['temporary_structure = oo_.' TYPE 'TheoreticalMoments.dsge.correlation.Mean;'])
|
||||||
if isfield(temporary_structure,var1)
|
if isfield(temporary_structure,deblank(var1))
|
||||||
eval(['temporary_structure_1 = oo_.' TYPE 'TheoreticalMoments.dsge.correlation.Mean.' var1 ';'])
|
eval(['temporary_structure_1 = oo_.' TYPE 'TheoreticalMoments.dsge.correlation.Mean.' var1 ';'])
|
||||||
if isfield(temporary_structure_1,var2)
|
if isfield(temporary_structure_1,deblank(var2))
|
||||||
eval(['temporary_structure_2 = temporary_structure_1.' var2 ';'])
|
eval(['temporary_structure_2 = temporary_structure_1.' var2 ';'])
|
||||||
l1 = length(temporary_structure_2);
|
l1 = length(temporary_structure_2);
|
||||||
if l1<nar
|
if l1<nar
|
||||||
|
|
Loading…
Reference in New Issue