infected_population_matrix: infected_population_natrix

View source: R/infected_population.R

infected_population_matrixR Documentation

infected_population_natrix

Description

a function that returns a matrix of the infected population for a given birthcohort

Usage

infected_population_matrix(
  incidence_mat,
  base_mortality_mat,
  time_step,
  susceptible,
  pmtct_birthcount,
  cumulative_infected_survival
)

Arguments

incidence_mat

associated incidence rates

base_mortality_mat

associated excess mortality survivial rates the probability of surving infection or death in the susceptible state

time_step

the time or age difference between to consecutive times or ages the probability of surving infection or death in the susceptible statemi.e it is uniform in all values supplied

susceptible

the susceptible population counts

pmtct_birthcount

number of newborns infected

cumulative_infected_survival

the survival probability of being aged a at time t having been infected for tau years.

Value

returns an matrix of dimensions time t , age a and time since infection - tau


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