Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The integrator produces negative values #69

Closed
Giappo opened this issue Jul 15, 2019 · 1 comment
Closed

The integrator produces negative values #69

Giappo opened this issue Jul 15, 2019 · 1 comment

Comments

@Giappo
Copy link
Owner

Giappo commented Jul 15, 2019

For some parameter choices (e.g. very high numbers, see test-mbd_ml:R147 (pars = c(60, 50, 100, 0.5)). The integration yields negative probabilities. This is best exposed considering the result of the conditioning probability, calculated with "calculate_conditional_prob".

@Giappo Giappo created this issue from a note in mbd: TODO (To do) Jul 15, 2019
@Giappo Giappo moved this from To do to In progress in mbd: TODO Jul 16, 2019
@Giappo
Copy link
Owner Author

Giappo commented Jul 16, 2019

The function check_pars now has a safety option.
If safety option is enabled then unrealistic parameter values will return a likelihood = -Inf.
The current domains for parameters are:
0 < lambda < 10
0 < mu < 10
0 < nu < 100
1e3 < q < 1 - 1e3

@Giappo Giappo closed this as completed Sep 9, 2019
mbd: TODO automation moved this from In progress to Done Sep 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
mbd: TODO
  
Done
Development

No branches or pull requests

1 participant