Parametric Mortality Models, Life Tables and HMD.
MortalityLaws: Parametric Mortality Models, Life Tables and HMD
Fit the most popular human mortality laws
, and construct full and abridged life tables given various input indices. A mortality law is a parametric function that describes the dying-out process of individuals in a population during a significant portion of their life spans. For a comprehensive review of the most important mortality laws see Tabeau (2001). Function for downloading demographic data from the following sources are provided:
- the Human Mortality Database (HMD)
- the Australian Human Mortality Database (AHMD)
- the Canadian Human Mortality Database (CHMD)
- the Japanese Mortality Database (JMD)
Installation
- Make sure you have the most recent version of R
- Run the following code in your R console
install.packages("MortalityLaws")
Updating to the latest version of the package
You can track and contribute to the development of MortalityLaws
on GitHub. To install it:
Install the release version of
devtools
from CRAN withinstall.packages("devtools")
.Make sure you have a working development environment.
- Windows: Install Rtools.
- Mac: Install
Xcode
from the Mac App Store. - Linux: Install a compiler and various development libraries (details vary across different flavors of Linux).
Install the development version of
MortalityLaws
.devtools::install_github("mpascariu/MortalityLaws")
Help
All functions are documented in the standard way, which means that once you load the package using library(MortalityLaws)
you can just type ?MortalityLaw
to see the help file.