Skip to content

Negative numbers greater than expected due to floating point error #60

Answered by levisc8
Aariq asked this question in Q&A
Discussion options

You must be logged in to vote

So the error message means that some value in the sub-kernel named leave_sdlg is negative, which can't be true for an IPM to work (i.e. it will produce negative individuals when multiplied by the population trait distribution). If that sub-kernel had stochastic parameters whose distributions could produce negative numbers, or forgetting to back transform yielded negative values on the logit scale, then that would definitely be the cause.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Aariq
Comment options

Answer selected by Aariq
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants