McMasterPandemic
McMasterPandemic copied to clipboard
Compute sums of state variables grouped by vaccine categories without `condense_state`
For the vaccine models described here https://raw.githack.com/mac-theobio/McMasterPandemic/ip_devel/notes/vaxify_for_devs.html, there is a simulation step that (I think) only requires operations of the form sum(x[grepl(...)]) (or better yet, precompute indices using grepl and then apply these indices throughout the simulations). However, instead of these more efficient idioms, excessive data frame manipulations and convertions are done and these will very likely cause big and unnecessary performance bottlenecks.
- [ ] Create alternative to calls to
condense_stateinmake_vaxrate - [ ] Test for equivalence
- [ ] Review by @papsti
Note: none of this requires C++
this sounds reasonable! please let me know when this is ready for review.