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)
- Make sure you have the most recent version of R
- Run the following code in your R console
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
devtoolsfrom CRAN with
Make sure you have a working development environment.
- Windows: Install Rtools.
- Mac: Install
Xcodefrom the Mac App Store.
- Linux: Install a compiler and various development libraries (details vary across different flavors of Linux).
Install the development version of
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.