Learn R Programming

⚠️There's a newer version (2.0.1) of this package.Take me there.

demography (version 1.17)

Forecasting mortality, fertility, migration and population data

Description

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.

Copy Link

Version

Install

install.packages('demography')

Monthly Downloads

4,660

Version

1.17

License

GPL (>= 2)

Maintainer

Rob Hyndman

Last Published

February 1st, 2014

Functions in demography (1.17)

demography-package

Forecasting mortality and fertility data
fdm

Functional demographic model
demogdata

Create demogdata object from raw data matrices
models

Show model information for the forecast coefficients in FDM models.
summary.fdm

Summary for functional demographic model or Lee-Carter model
plot.lifetable

Plot life expectancy from lifetable
tfr

Compute total fertility rate from fertility rates
life.expectancy

Estimate life expectancy from mortality rates
pop.sim

Population simulation
compare.demogdata

Evaluation of demographic forecast accuracy
extract.years

Extract some years from a demogdata object
extract.ages

Extract some ages from a demogdata object
netmigration

Calculate net migration from mortality and fertility data
coherentfdm

Coherent functional demographic model for grouped data
sex.ratio

Compute sex ratios from mortality rates
update.fmforecast

Updating functional demographic models and coherent functional demographic models.
smooth.demogdata

Create smooth demogdata functions
set.upperage

Combine the upperages of a demogdata object.
plot.demogdata

Plot age-specific demographic functions
cm.spline

Monotonic interpolating splines
forecast.fdmpr

Forecast coherent functional demographic model.
forecast.fdm

Forecast functional demographic model.
isfe

Integrated Squared Forecast Error for models of various orders
simulate.fmforecast

Simulate future sample paths from functional demographic model forecasts.
hmd.mx

Read demographic data from the Human Mortality Database
fr.mort

French mortality data
median

Median
residuals.fdm

Compute residuals and fitted values from functional demographic model or Lee-Carter model
read.demogdata

Read demographic data and construct demogdata object
aus.fert

Australian fertility data
lca

Model mortality data using Lee-Carter approach
combine.demogdata

Combine two demogdata objects into one demogdata object
forecast.lca

Forecast demogdata data using Lee-Carter method.
plot.errorfdm

Plot differences between actuals and estimates from fitted demographic model
mean.demogdata

Mean and median functions for data of class demogdata
lifetable

Construct lifetables from mortality rates
plot.fmforecast

Plot forecasts from a functional demographic modell