epiverse-trace / epichains

[Under active development] Methods for simulating and analysing the sizes and lengths of infectious disease transmission chains from branching process models
https://epiverse-trace.github.io/epichains/
Other
5 stars 2 forks source link

Make chains stop at a hard limit using the `stat_*` argument #243

Open jamesmbaazam opened 3 months ago

jamesmbaazam commented 3 months ago

Would an alternative be to ensure it doesn't, i.e. select cases in the final generation such that the stat is stat_max?

I think this might be the desirable behaviour. We could treat the last generation of offspring as potential offspring and sample the number needed to reach stat_max by finding the difference between the cumulative number before the last generation and stat_max.

Originally posted by @jamesmbaazam in https://github.com/epiverse-trace/epichains/issues/237#issuecomment-2092733630