epiverse-trace / superspreading

Estimation of individual level variation in transmission
https://epiverse-trace.github.io/superspreading/
Other
4 stars 2 forks source link

Use dynamic dots in `probability_contain()` #87

Closed joshwlambert closed 9 months ago

joshwlambert commented 9 months ago

This PR adds the use of dynamic dots to probability_contain(). The function now errors when an argument is passed through ... but does not match arguments in bpmodels::chain_sim(), instead of silently ignoring the incorrect argument. This is to match the behaviour of other Epiverse-TRACE functions. The documentation and a test of probability_contain() have been updated to explain and test the new features/behaviour.