Simulation of mortality data from various models

sim_mortality_data(a, k, k2, b, g, phi, years, ages, exposure, mortality_model)

Arguments

a

vector of age component

k

first vector of time component

k2

second vector of time component

b

vector of age/time component

g

vector of cohort component

phi

dispersion parameter

years

vector of calendar year

ages

vector of ages

exposure

matrix of exposure

mortality_model

name of the mortality model that we simulate from

Value

matrix of death counts