
<!-- README.md is generated from README.Rmd. Please edit that file -->

# demography

<!-- badges: start -->

[![CRAN
status](https://www.r-pkg.org/badges/version/demography)](https://cran.r-project.org/package=demography)
[![cran
checks](https://badges.cranchecks.info/worst/demography.svg)](https://cran.r-project.org/web/checks/check_results_demography.html)
[![R-CMD-check](https://github.com/robjhyndman/demography/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/robjhyndman/demography/actions/workflows/R-CMD-check.yaml)
[![Downloads](https://cranlogs.r-pkg.org/badges/demography)](https://cran.r-project.org/package=demography)
[![Licence](https://img.shields.io/badge/licence-GPL--3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0.en.html)
<!-- badges: end -->

The R package `demography` provides functions for demographic analysis
including: lifetable calculations; Lee-Carter modelling; functional data
analysis of mortality rates, fertility rates, net migration numbers; and
stochastic population forecasting.

## Installation

You can install the **stable** version on [R
CRAN](https://CRAN.R-project.org/package=demography).

``` r
install.packages('demography', dependencies = TRUE)
```

You can also install the **development** version from
[Github](https://github.com/robjhyndman/demography)

``` r
# install.packages("devtools")
library(devtools)
install_github("robjhyndman/demography")
```

## License

This package is free and open source software, licensed under GPL (\>=
3).
