View source: R/probabiliy_surviving_infected.R
probability_surviving_infected_array | R Documentation |
a function that returns an array of probabilities of surviving in the infected state for each age, time and time since infection.
probability_surviving_infected_array(
wedge_of_excess_mortality_array,
matrix_of_base_mortality,
time_step
)
wedge_of_excess_mortality_array |
array containing excess mortality rates for a given time space. |
matrix_of_base_mortality |
matrix containing background rates for a given time space. |
time_step |
the time or age difference between to consecutive times or ages i.e it is uniform in all values supplied |
returns an array of dimensions time, age and time since infection - tau which is the probability of surviving the given time_step given that you are infected.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.