commit
6d95abdb95
|
@ -121,7 +121,7 @@ else
|
||||||
end
|
end
|
||||||
|
|
||||||
% Determine number of periods
|
% Determine number of periods
|
||||||
n = size(smoothedvars.(tmp{1}));
|
n = length(smoothedvars.(tmp{1}));
|
||||||
|
|
||||||
if n < M_.maximum_endo_lag
|
if n < M_.maximum_endo_lag
|
||||||
error('Not enough observations to create initial conditions')
|
error('Not enough observations to create initial conditions')
|
||||||
|
@ -171,7 +171,7 @@ end
|
||||||
|
|
||||||
% Handle all endogenous variables to be copied
|
% Handle all endogenous variables to be copied
|
||||||
data = zeros(M_.orig_maximum_endo_lag, length(invars));
|
data = zeros(M_.orig_maximum_endo_lag, length(invars));
|
||||||
k = M_.orig_maximum_endo_lag - M_.maximum_endo_lag + 1: M_.orig_maximum_lag
|
k = M_.orig_maximum_endo_lag - M_.maximum_endo_lag + 1: M_.orig_maximum_lag;
|
||||||
for i = 1:length(invars)
|
for i = 1:length(invars)
|
||||||
if isempty(strmatch(invars{i}, M_.endo_names, 'exact'))
|
if isempty(strmatch(invars{i}, M_.endo_names, 'exact'))
|
||||||
% Skip exogenous
|
% Skip exogenous
|
||||||
|
|
Loading…
Reference in New Issue