Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dóra Kocsis
dynare
Commits
28d30d9a
Commit
28d30d9a
authored
Jun 09, 2010
by
Houtan Bastani
Browse files
Bug fix: catch the case when a parameter follows a beta distribution with mean = std err = 0.5
parent
26dc6f7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
preprocessor/ComputingTasks.cc
View file @
28d30d9a
...
...
@@ -317,6 +317,15 @@ EstimatedParamsStatement::EstimatedParamsStatement(const vector<EstimationParams
estim_params_list
(
estim_params_list_arg
),
symbol_table
(
symbol_table_arg
)
{
for
(
vector
<
EstimationParams
>::
const_iterator
it
=
estim_params_list
.
begin
();
it
!=
estim_params_list
.
end
();
it
++
)
if
(
it
->
prior
==
"1"
)
//BETA_PDF is associated with "1" in DynareBison.yy
if
(
dynamic_cast
<
NumConstNode
*>
(
it
->
mean
)
->
isNumConstNodeEqualTo
(
0.5
)
&&
dynamic_cast
<
NumConstNode
*>
(
it
->
std
)
->
isNumConstNodeEqualTo
(
0.5
))
{
cerr
<<
"The prior density is not defined for the beta distribution when the mean = standard deviation = 0.5."
<<
endl
;
exit
(
EXIT_FAILURE
);
}
}
void
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment