probability_surviving_infected_array: probability_of_surviving_infected_array

View source: R/probabiliy_surviving_infected.R

probability_surviving_infected_arrayR Documentation

probability_of_surviving_infected_array

Description

a function that returns an array of probabilities of surviving in the infected state for each age, time and time since infection.

Usage

probability_surviving_infected_array(
  wedge_of_excess_mortality_array,
  matrix_of_base_mortality,
  time_step
)

Arguments

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

Value

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.


laurettemhlanga/PopulationSimulation documentation built on Sept. 9, 2023, 12:39 p.m.