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
94992b2c
Verified
Commit
94992b2c
authored
5 years ago
by
Johannes Pfeifer
Committed by
Sébastien Villemot
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Particle filters: provide error if trends or prefiltering is used
Closes
#1690
(cherry picked from commit
03a87595
)
parent
79964f9a
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1815
WIP Cherry-picks for 4.6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/initial_estimation_checks.m
+10
-2
10 additions, 2 deletions
matlab/initial_estimation_checks.m
with
10 additions
and
2 deletions
matlab/initial_estimation_checks.m
+
10
−
2
View file @
94992b2c
...
...
@@ -41,8 +41,16 @@ function DynareResults = initial_estimation_checks(objective_function,xparam1,Dy
%singularity check
maximum_number_non_missing_observations
=
max
(
sum
(
~
isnan
(
DynareDataset
.
data
),
2
));
if
DynareOptions
.
order
>
1
&&
any
(
any
(
isnan
(
DynareDataset
.
data
)))
error
(
'initial_estimation_checks:: particle filtering does not support missing observations'
)
if
DynareOptions
.
order
>
1
if
any
(
any
(
isnan
(
DynareDataset
.
data
)))
error
(
'initial_estimation_checks:: particle filtering does not support missing observations'
)
end
if
DynareOptions
.
prefilter
==
1
error
(
'initial_estimation_checks:: particle filtering does not support the prefilter option'
)
end
if
BayesInfo
.
with_trend
error
(
'initial_estimation_checks:: particle filtering does not support trends'
)
end
end
non_zero_ME
=
length
(
EstimatedParameters
.
H_entries_to_check_for_positive_definiteness
);
...
...
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