View source: R/probabiliy_surviving_infected.R
probability_surviving_infected_matrix | R Documentation |
a function that returns an matrix of probabilities of surviving in the infected state for each age, time and time since infection.
probability_surviving_infected_matrix(
excess_mortality_matrix,
time_step,
base_mortality_vector
)
excess_mortality_matrix |
matrix containing excess mortality 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 |
base_mortality_vector |
containing background rates for a given time space. |
returns an matrix 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.