The demography package for R contains functions for various demographic analyses. It provides facilities for demographic statistics, modelling and forecasting. In particular, it implements lifetable calculations; Lee-​​Carter modelling and variants; functional data analysis of mortality rates, fertility rates, net migration numbers; and stochastic population forecasting.

The package has been in development for years, but I’ve finally now posted it to CRAN.

Examples

Note: Some of these may no longer work with the updated package. I’ll fix them soon.

Extra data are available in the addb package.