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
- funcfor.R: analysis from Hyndman and Ullah (2005)
- adelaide.R: analysis from a talk given to the Australian Population Network in Adelaide, November 2004.
- Other shorter examples are given in the help files.
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.