Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dynare
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stéphane Adjemian
dynare
Commits
3dee87c2
Commit
3dee87c2
authored
10 years ago
by
Johannes Pfeifer
Browse files
Options
Downloads
Patches
Plain Diff
Fix crash in unit test fs2000_smoother_only
For calibrated models, the param_vals field does not exist
parent
9bd47caa
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/initial_estimation_checks.m
+1
-1
1 addition, 1 deletion
matlab/initial_estimation_checks.m
with
1 addition
and
1 deletion
matlab/initial_estimation_checks.m
+
1
−
1
View file @
3dee87c2
...
...
@@ -49,7 +49,7 @@ old_steady_params=Model.params; %save initial parameters for check if steady sta
% % check if steady state solves static model (except if diffuse_filter == 1)
[
DynareResults
.
steady_state
,
new_steady_params
]
=
evaluate_steady_state
(
DynareResults
.
steady_state
,
Model
,
DynareOptions
,
DynareResults
,
DynareOptions
.
diffuse_filter
==
0
);
if
~
isempty
(
EstimatedParameters
.
param_vals
)
if
isfield
(
EstimatedParameters
,
'param_vals'
)
&&
~
isempty
(
EstimatedParameters
.
param_vals
)
%check whether steady state file changes estimated parameters
Model_par_varied
=
Model
;
%store Model structure
Model_par_varied
.
params
(
EstimatedParameters
.
param_vals
(:,
1
))
=
Model_par_varied
.
params
(
EstimatedParameters
.
param_vals
(:,
1
))
*
1.01
;
%vary parameters
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment