NA in traj_objfun() #190
-
I'm using I'm building a SIRS model. Below is my code in pomp:
I also used Can you please tell me what might go wrong? Thank you so much!! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I notice that you round
The usual rounding function in C is
I also notice that you have extraneous code in your example. Please reduce your examples to their essentials. Not only is this a courtesy to those you are asking for help, and to the readers of this discussion, but it may help you find the error yourself! |
Beta Was this translation helpful? Give feedback.
I notice that you round
J
inili_nll_objfun
, but not intraj_func
. Notice thatdbinom
insists (correctly) onsize
being an integer:The usual rounding function in C is
nearbyint
. Cf. the following: