R/sim_mortality_data.R
sim_mortality_data.RdSimulation of mortality data from various models
sim_mortality_data(a, k, k2, b, g, phi, years, ages, exposure, mortality_model)
| 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 |
matrix of death counts