Simulation of death counts from the M6 model

sim_death_m6(k, k2, g, phi, years, ages, exposure)

Arguments

k

first vector of period component

k2

second vector of period component

g

vector of cohort component

phi

dispersion parameter

years

vector of calendar years

ages

vectors of ages

exposure

matrix of exposure data

Value

matrix of death count