v4 dynare_estimation.m: corrected bug on options_.trend_coeffs
git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@597 ac1d8469-bf42-47a9-8791-bf33cf982152time-shift
parent
749f81f17d
commit
2e66335d0b
|
@ -86,7 +86,7 @@ ub = bounds(:,2);
|
|||
bayestopt_.lb = lb;
|
||||
bayestopt_.ub = ub;
|
||||
|
||||
if isempty(options_.trend_coeffs)
|
||||
if ~isfield(options_,'trend_coeffs')
|
||||
bayestopt_.with_trend = 0;
|
||||
else
|
||||
bayestopt_.with_trend = 1;
|
||||
|
@ -94,7 +94,7 @@ else
|
|||
trend_coeffs = options_.trend_coeffs;
|
||||
nt = length(trend_coeffs);
|
||||
for i=1:n_varobs
|
||||
if i > length(trend_coeffs) | isempty(trend_coeffs{i})
|
||||
if i > length(trend_coeffs)
|
||||
bayestopt_.trend_coeff{i} = '0';
|
||||
else
|
||||
bayestopt_.trend_coeff{i} = trend_coeffs{i};
|
||||
|
|
Loading…
Reference in New Issue