View source: R/plot_parameters_li_lee.R
plot_parameters_li_lee | R Documentation |
This function plots the estimated parameters in the multipopulation Li-Lee model.
plot_parameters_li_lee(xv, yv, fit, sex, country_spec, method, type)
xv |
The vector of ages. |
yv |
The vector of years (for your country of interest). |
fit |
The estimated Li-Lee model. |
sex |
The gender of interest ( |
country_spec |
The user code of your country of interest. |
method |
The method used to fit the Li-Lee mortality model (currently only |
type |
Which type of parameter estimates should be visualized? Either one of the common
parameter estimates ( |
The object fit
must be the output of the function fit_li_lee
.
A plot showing the parameter estimates of the fitted Li-Lee model.
lst <- MultiMoMo::european_mortality_data dat_M <- lst$M xv <- 0:90 yv = yvSPEC <- 1970:2018 Countries <- names(dat_M$UNI) country_spec <- "BE" fit_M <- fit_li_lee(xv, yv, yvSPEC, country_spec, dat_M, "NR", TRUE, FALSE) plot_parameters_li_lee(xv, yvSPEC, fit_M, "Male", country_spec, "NR", "k.t")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.