Skip to content
Snippets Groups Projects
Commit 6030fed4 authored by Johannes Pfeifer's avatar Johannes Pfeifer
Browse files

Fix bug in dynare_estimation_init.m with analytic_derivation where parameter vector was not set

Before testing whether the steady state file changes parameter values, the parameter values were not set, leading to subsequent crashes
parent 5bb994fd
Branches
Tags
No related merge requests found
...@@ -435,7 +435,8 @@ if options_.analytic_derivation, ...@@ -435,7 +435,8 @@ if options_.analytic_derivation,
if estim_params_.np, if estim_params_.np,
% check if steady state changes param values % check if steady state changes param values
M=M_; M=M_;
M.params(estim_params_.param_vals(:,1)) = M.params(estim_params_.param_vals(:,1))*1.01; M.params(estim_params_.param_vals(:,1)) = xparam1(estim_params_.nvx+estim_params_.ncx+estim_params_.nvn+estim_params_.ncn+1:end); %set parameters
M.params(estim_params_.param_vals(:,1)) = M.params(estim_params_.param_vals(:,1))*1.01; %vary parameters
if options_.diffuse_filter if options_.diffuse_filter
steadystate_check_flag = 0; steadystate_check_flag = 0;
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment