View source: R/base_mortality_matrix.R
base_mortality_vector | R Documentation |
a function that returns a matrix of probabilities of mortality for each ages and time step of the simulation
base_mortality_vector(
n_age_steps,
date_of_birth,
base_mortality_function,
time_step
)
n_age_steps |
The maximum age attained by each birth cohort (aging steps). |
date_of_birth |
a numeric vectors indicating the dates in simulation. Note that date format is not used. |
base_mortality_function |
a function which takes as arguments age and time and returns a numberic rate of mortality for each age and time included in the simulation. This function can be defined by user or can be selected from several default options included in the package. The user-defined or package default function should be called by name when included as an argument in the base_mortality_matrix function |
time_step |
the time step between consecurtive birth dates in the vector list_of_birth_times |
a matrix of column length max_age and row length list_of_birth_times, Values stored in the matrix are numeric double, from 0-1, which represent the natural mortality rate at given age and time
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.