who_mortality | R Documentation |
Returns age and sex-specific mortality probabilities for a given country.
get_who_mr_memo( age, sex = NULL, region = NULL, country = NULL, year = "latest", local = FALSE ) get_who_mr( age, sex = NULL, region = NULL, country = NULL, year = "latest", local = FALSE )
age |
age as a continuous variable. |
sex |
sex as |
region |
Region code. Assumed |
country |
Country code (see details). |
year |
Use data from that year. Defaults to
|
local |
Fetch mortality data from package cached data? |
Locally cached data is used in case of connection
problems, of if local = TRUE
. For memory space reasons
local data is only available for WHO high-income
countries, and only for the latest year.
The results of get_who_mr
are memoised for
options("heemod.memotime")
(default: 1 hour) to
increase resampling performance.
This function should be used within
define_transition()
or define_parameters()
.
define_transition( C, get_who_mr(age = 50 + markov_cycle, sex = "FMLE", country = "FRA"), 0, 1 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.