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
Container registry
Model registry
Operate
Environments
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
Dynare
dynare
Commits
d82252e8
Commit
d82252e8
authored
11 years ago
by
Johannes Pfeifer
Browse files
Options
Downloads
Patches
Plain Diff
Filter out inconsistent specification of prefiltering when observation equation is not mean zero
parent
5626b0cb
No related branches found
No related tags found
1 merge request
!602
Various changes to documentation
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/dynare_estimation_init.m
+11
-8
11 additions, 8 deletions
matlab/dynare_estimation_init.m
with
11 additions
and
8 deletions
matlab/dynare_estimation_init.m
+
11
−
8
View file @
d82252e8
...
...
@@ -93,12 +93,6 @@ elseif isempty(options_.qz_criterium)
options_
.
qz_criterium
=
1
+
1e-6
;
end
% If the data are prefiltered then there must not be constants in the
% measurement equation of the DSGE model or in the DSGE-VAR model.
if
options_
.
prefilter
==
1
options_
.
noconstant
=
1
;
end
% Set options related to filtered variables.
if
~
isequal
(
options_
.
filtered_vars
,
0
)
&&
isempty
(
options_
.
filter_step_ahead
)
options_
.
filter_step_ahead
=
1
;
...
...
@@ -478,7 +472,7 @@ dataset_ = initialize_dataset(options_.datafile,options_.varobs,options_.first_o
options_
.
nobs
=
dataset_
.
info
.
ntobs
;
% setting
noconstant
option
% setting
steadystate_check_flag
option
if
options_
.
diffuse_filter
steadystate_check_flag
=
0
;
else
...
...
@@ -498,4 +492,13 @@ if all(abs(oo_.steady_state(bayestopt_.mfys))<1e-9)
options_
.
noconstant
=
1
;
else
options_
.
noconstant
=
0
;
end
\ No newline at end of file
% If the data are prefiltered then there must not be constants in the
% measurement equation of the DSGE model or in the DSGE-VAR model.
if
options_
.
prefilter
==
1
fprintf
(
'\nestimation_init: You have specified the option "prefilter" to demean your data,\n'
)
fprintf
(
'estimation_init: but your observation equations are not mean zero. Either change your observation\n'
)
fprintf
(
'estimation_init: equation or drop the prefiltering.\n'
)
error
(
'The option "prefilter" is inconsistent with the non-zero mean measurement equations in the model.'
)
end
end
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