https://github.com/mpascariu/MortalityLaws
Fit and compare the most popular human mortality laws - R package
https://github.com/mpascariu/MortalityLaws
actuarial-science demography download-hmd human-mortality-laws life-table mortality
Last synced: 4 months ago
JSON representation
Fit and compare the most popular human mortality laws - R package
- Host: GitHub
- URL: https://github.com/mpascariu/MortalityLaws
- Owner: mpascariu
- License: other
- Created: 2016-11-17T09:12:51.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-01-15T18:03:06.000Z (about 1 year ago)
- Last Synced: 2024-11-28T18:09:44.799Z (5 months ago)
- Topics: actuarial-science, demography, download-hmd, human-mortality-laws, life-table, mortality
- Language: R
- Homepage:
- Size: 6.31 MB
- Stars: 30
- Watchers: 5
- Forks: 8
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- jimsghstars - mpascariu/MortalityLaws - Fit and compare the most popular human mortality laws - R package (R)
README
#
MortalityLaws: Parametric Mortality Models, Life Tables and HMD
[](https://cran.r-project.org/package=MortalityLaws)
[](https://app.codecov.io/github/mpascariu/MortalityLaws)
[](https://github.com/mpascariu/MortalityLaws/issues)[](https://lifecycle.r-lib.org/articles/stages.html)
[](https://github.com/mpascariu/MortalityLaws/blob/master/LICENSE)
[](https://CRAN.R-project.org/package=MortalityLaws)
[](https://CRAN.R-project.org/package=MortalityLaws)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)](https://doi.org/10.1007/0-306-47562-6_1). Function for downloading demographic data from the following sources are provided:- the [Human Mortality Database (HMD)](https://www.mortality.org/)
- the [Australian Human Mortality Database (AHMD)](https://demography.cass.anu.edu.au/research/australian-human-mortality-database)
- the [Canadian Human Mortality Database (CHMD)](http://www.bdlc.umontreal.ca/chmd/index.htm)
- the [Japanese Mortality Database (JMD)](https://www.ipss.go.jp/p-toukei/JMD/index-en.asp)## Installation
1. Make sure you have the most recent version of R
2. Run the following code in your R console```R
install.packages("MortalityLaws")
```## Updating to the latest version of the package
You can track and contribute to the development of `MortalityLaws` on [GitHub](https://github.com/mpascariu/MortalityLaws). To install it:
1. Install the release version of `devtools` from CRAN with `install.packages("devtools")`.
2. Make sure you have a working development environment.
* **Windows**: Install [Rtools](https://CRAN.R-project.org/bin/windows/Rtools/).
* **Mac**: Install `Xcode` from the Mac App Store.
* **Linux**: Install a compiler and various development libraries (details vary across different flavors of Linux).3. Install the development version of `MortalityLaws`.
```R
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.