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
addfced3
Commit
addfced3
authored
1 year ago
by
Johannes Pfeifer
Browse files
Options
Downloads
Patches
Plain Diff
manual: clarify treatment of missing data in Inversion Filter
parent
2e8ced89
Branches
Branches containing commit
No related tags found
1 merge request
!2284
manual: clarify treatment of missing data in Inversion Filter
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/manual/source/the-model-file.rst
+16
-5
16 additions, 5 deletions
doc/manual/source/the-model-file.rst
with
16 additions
and
5 deletions
doc/manual/source/the-model-file.rst
+
16
−
5
View file @
addfced3
...
...
@@ -5590,11 +5590,22 @@ All of these elements are discussed in the following.
or the piecewise Kalman filter (default). An issue that can arise in the context of
estimation is a structural shock dropping out of the model in a particular regime.
For example, at the zero lower bound on interest rates, the monetary policy shock
in the Taylor rule will not appear anymore. This may create a problem
of stochastic singularity if there are then more observables than shocks. To
avoid this issue, the data points for the zero interest rate should be set
to NaN and the standard deviation of the associated shock set to 0 for the
corresponding periods using the ``heteroskedastic_shocks`` block.
in the Taylor rule will not appear anymore. This may create a problem if there are
then more observables than shocks. The way to handle this issue depends on the type of filter used.
The first step is to set the data points for the zero interest rate period to NaN. For the piecewise
Kalman filter, the standard deviation of the associated shock needs to be set to 0 for the
corresponding periods using the ``heteroskedastic_shocks`` block. This avoids stochastic singularity.
However, this approach does not work for the inversion filter as the ``heteroskedastic_shocks`` block
does not do anything here. For the inversion filter, as many shocks as observables are required
at each point in time. Dynare assumes a one-to-one mapping between the declared shocks in
``varexo`` and declared observables in ``varobs``. For example, if the second declared observable
is NaN in a given period, Dynare will drop the second declared shock.
.. warning:: If there are missing values, it is imperative for the inversion filter that the
declaration order of shocks and observables is conformable. Sticking with our example, if the nominal
interest is the second ``varobs`` and is set to NaN, the inversion filter will drop the second
declared shock. If that second declared shock is, e.g., a TFP shock, it will be dropped instead
of the intended monetary policy shock.
Note that models with unit roots will require the user to specify the ``diffuse_filter`` option as
otherwise Blanchard-Kahn errors will be triggered. For the piecewise Kalman filter, the
...
...
This diff is collapsed.
Click to expand it.
Johannes Pfeifer
@JohannesPfeifer
mentioned in commit
dda2b0b3
·
1 year ago
mentioned in commit
dda2b0b3
mentioned in commit dda2b0b3140a36b6c5ef73305ddecdd72042cb58
Toggle commit list
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