Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Error in rmultinom(length(which(Onset == t)), size = 1, prob = SI.Distr[t - : no positive probabilities #4
Hi @annecori When I used the Wallinga and Teunis method function
Here is my reproducible code
I encountered the same error when the value of t.start is small; however, after I increased t.start to 130, it still threw the error. From the plot of epidemic curve, after the 130th day, there were enough cases. Could you please help me look at this problem? Thank you very much.
Besides, I have implemented a method to automatically determine the minimum value of t.start that the