demography v1.22

0

Monthly downloads

0th

Percentile

Forecasting Mortality, Fertility, Migration and Population Data

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.

Readme

demography

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.

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

You can also install the development version from Github

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

License

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

Functions in demography

Name Description
coherentfdm Coherent functional demographic model for grouped data
combine.demogdata Combine two demogdata objects into one demogdata object
compare.demogdata Evaluation of demographic forecast accuracy
demogdata #################################################### Create demogdata object from raw data matrices
plot.fmforecast Plot forecasts from a functional demographic modell
read.demogdata Read demographic data and construct demogdata object
plot.lifetable Plot life expectancy from lifetable
smooth.demogdata Create smooth demogdata functions
summary.fdm Summary for functional demographic model or Lee-Carter model
forecast.lca Forecast demogdata data using Lee-Carter method.
lca Model mortality or fertility data using Lee-Carter approach
fr.mort French mortality data
residuals.fdm Compute residuals and fitted values from functional demographic model or Lee-Carter model
life.expectancy Estimate life expectancy from mortality rates
set.upperage Combine the upperages of a demogdata object.
plot.demogdata Plot age-specific demographic functions
plot.errorfdm Plot differences between actuals and estimates from fitted demographic model
demography-package Forecasting mortality and fertility data
extract.ages Extract some ages from a demogdata object
hmd Summary for functional demographic model or Lee-Carter model
isfe Integrated Squared Forecast Error for models of various orders
netmigration Calculate net migration from mortality and fertility data
models Show model information for the forecast coefficients in FDM models.
sex.ratio Compute sex ratios from mortality rates
extract.years Extract some years from a demogdata object
fdm Functional demographic model
forecast.fdm Forecast functional demographic model.
simulate.fmforecast Simulate future sample paths from functional demographic model forecasts.
forecast.fdmpr Forecast coherent functional demographic model.
tfr Compute total fertility rate from fertility rates
update Updating functional demographic models and coherent functional demographic models.
cm.spline Monotonic interpolating splines
mean.demogdata Mean and median functions for data of class demogdata
lifetable Construct lifetables from mortality rates
aus.fert Australian fertility data
pop.sim Population simulation
No Results!

Last month downloads

Details

LazyData yes
ByteCompile TRUE
BugReports https://github.com/robjhyndman/demography/issues
License GPL (>= 2)
RoxygenNote 6.1.1
URL https://github.com/robjhyndman/demography
NeedsCompilation no
Packaged 2019-04-22 05:49:28 UTC; hyndman
Repository CRAN
Date/Publication 2019-04-22 06:40:08 UTC

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/demography)](http://www.rdocumentation.org/packages/demography)