Closed chvandorp closed 4 years ago
Hmm, I was able to fix the error in stem_measure. I think there may be some downstream issues though. Might take a few days to track this down.
Thanks for the heads up, really appreciate that you're exploring some use cases that I hadn't worked on!
OK good luck! It's quite a complex and ambitious package, so not surprising that some parts don't fully work yet... Thanks for developing this!
Hey Chris,
Apologies for the delays. I pushed a patch that should fix the issues in simulate_stem with prevalence data. I think it should be good to go for the model in your example above. However, I think this function is long overdue to be refactored and I'm not entirely sure it's bug free. In particular, while I'm confident that epidemic paths are being simulated correctly, there might be issues when simulating datasets conditional on epidemic paths in cases where you have misaligned observation intervals like in the example in your last issue. In these cases, you could solve ODEs or get exact paths via Gillespie simulation, but simulate datasets by hand. I think the inference wrappers should be fine for prevalence data.
Thanks again for letting me know about issues that you've run into. The package is still being actively developed so it's great to have feedback.
Cheers, Jon
Fantastic, Jon! I'll soon give it a try with some real data.
Hi Jon,
Thanks for fixing the issue with lists of data sets. I warned you I found another problem, though.. Here it is: I'm trying to fit a model with one incidence-based and a prevalence-based observation. This did not work, and I think this is because something goes wrong with the prevalence-based observations and indexing of paths. So I tried an example with only a prevalence-based observation. But this resulted in other errors. When I run the script below, I get the error:
If you (un)comment the lines with (OK)ERROR, you'll see that the script works with incidence-based observations.
Thanks again!
Chris