susceptible_cumulative_survival_vector: susceptible_cumulative_survival_vector

View source: R/susceptible_cumulative_survival.R

susceptible_cumulative_survival_vectorR Documentation

susceptible_cumulative_survival_vector

Description

a function that returns a matrix of cumulative probabilities of survival -i.e. not dying and aquiring infection - for each age and time step of the simulation

Usage

susceptible_cumulative_survival_vector(
  incidence_vector,
  base_mortality_vector,
  time_step
)

Arguments

incidence_vector

vector of incidence rates for specified ages and times

base_mortality_vector

vector of natural mortality rates for specified ages and times

time_step

the time step between consecurtive dates or the length of the time between date of births of cohorts

Value

a vector of cumulative probabilities (from birth till age a at time t) of surviving in the susceptible population without being infected or dying from natural death . Values stored in the matrix are numeric-double, from 0-1, which represent the probability of surviving a specified age from birth in the susceptible population.


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