probability_surviving_infected_matrix: probability_of_surviving_infected

View source: R/probabiliy_surviving_infected.R

probability_surviving_infected_matrixR Documentation

probability_of_surviving_infected

Description

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

Usage

probability_surviving_infected_matrix(
  excess_mortality_matrix,
  time_step,
  base_mortality_vector
)

Arguments

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.

Value

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.


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