wedge_excess_mortality_matrix: wedge_excess_mortality_matrix

View source: R/wedge_excess_mortality_array.R

wedge_excess_mortality_matrixR Documentation

wedge_excess_mortality_matrix

Description

a function that returns a matrix of probabilities of mortality for each age and time step of the simulation

Usage

wedge_excess_mortality_matrix(
  n_age_steps,
  list_of_times,
  time_step,
  excess_mortality
)

Arguments

n_age_steps

the optimal age each birth cohort is reaches

list_of_times

a numeric vector of length min:max; indicates the range of ages to be included in simulation. Note that date format is not used.

time_step

the time step between consecurtivelist_of_birth_times

excess_mortality

the excess mortality function

Value

returns an array of dimensions time, age and time since infection - tau, which is essentially the probability of surviving in the given time space.


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