prior_immunity#
- class prior_immunity(*args, **kwargs)[source]#
Wrapper function for
historical_wave
andhistorical_vaccinate_prob
. If thevaccine
keyword is present thenhistorical_vaccinate_prob
will be used. Otherwisehistorical_wave
is used.Examples:
pim1 = cv.prior_immunity(vaccine='pfizer', days=[-30], prob=0.7) pim2 = cv.prior_immunity(120, 0.05)
New in version 3.1.0.