Learn R Programming

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

demography (version 1.0)

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.0

License

GPL (>= 2)

Maintainer

Rob Hyndman

Last Published

August 12th, 2010

Functions in demography (1.0)

mean.demogdata

Mean and median functions for data of class demogdata
lca

Model mortality data using Lee-Carter approach
tfr

Compute total fertility rate from fertility rates
forecast.fdm

Forecast functional demographic model.
isfe

Integrated Squared Forecast Error for models of various orders
demogdata

Create demogdata object from raw data matrices
extract.ages

Extract some ages from a demogdata object
plot.lifetable

Plot life expectancy from lifetable
cm.spline

Monotonic interpolating splines
life.expectancy

Estimate life expectancy from mortality rates
hmd.mx

Read Mx demographic data from the Human Mortality Database
pop.sim

Population simulation
smooth.demogdata

Create smooth demogdata functions
models

Show model information for the forecast coefficients in FDM models.
extract.years

Extract some years from a demogdata object
combine.demogdata

Combine two demogdata objects into one demogdata object
coherentfdm

Coherent functional demographic model for grouped data
read.demogdata

Read demographic data and construct demogdata object
summary.fdm

Summary for functional demographic model or Lee-Carter model
fdm

Functional demographic model
residuals.fdm

Compute residuals and fitted values from functional demographic model or Lee-Carter model
plot.fmforecast

Plot forecasts from a functional demographic modell
plot.demogdata

Plot age-specific demographic functions
fr.mort

French mortality data
netmigration

Calculate net migration from mortality and fertility data
forecast.fdmpr

Forecast coherent functional demographic model.
aus.fert

Australian fertility data
compare.demogdata

Evaluation of demographic forecast accuracy
demography-package

Forecasting mortality and fertility data
median

Median
plot.errorfdm

Plot differences between actuals and estimates from fitted demographic model
lifetable

Construct lifetable from mortality rates
set.upperage

Combine the upperages of a demogdata object.
sex.ratio

Compute sex ratios from mortality rates
plot.fmres

Plot residuals from fitted demographic model
simulate.fmforecast

Simulate future sample paths from functional demographic model forecasts.
forecast.lca

Forecast demogdata data using Lee-Carter method.