Learn R Programming

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

demography (version 1.02)

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

License

GPL (>= 2)

Maintainer

Rob Hyndman

Last Published

August 14th, 2010

Functions in demography (1.02)

combine.demogdata

Combine two demogdata objects into one demogdata object
compare.demogdata

Evaluation of demographic forecast accuracy
forecast.fdm

Forecast functional demographic model.
smooth.demogdata

Create smooth demogdata functions
isfe

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

Plot forecasts from a functional demographic modell
coherentfdm

Coherent functional demographic model for grouped data
demogdata

Create demogdata object from raw data matrices
residuals.fdm

Compute residuals and fitted values from functional demographic model or Lee-Carter model
fr.mort

French mortality data
extract.ages

Extract some ages from a demogdata object
forecast.fdmpr

Forecast coherent functional demographic model.
demography-package

Forecasting mortality and fertility data
forecast.lca

Forecast demogdata data using Lee-Carter method.
aus.fert

Australian fertility data
simulate.fmforecast

Simulate future sample paths from functional demographic model forecasts.
sex.ratio

Compute sex ratios from mortality rates
set.upperage

Combine the upperages of a demogdata object.
tfr

Compute total fertility rate from fertility rates
mean.demogdata

Mean and median functions for data of class demogdata
plot.lifetable

Plot life expectancy from lifetable
plot.fmres

Plot residuals from fitted demographic model
read.demogdata

Read demographic data and construct demogdata object
cm.spline

Monotonic interpolating splines
netmigration

Calculate net migration from mortality and fertility data
pop.sim

Population simulation
fdm

Functional demographic model
hmd.mx

Read Mx demographic data from the Human Mortality Database
median

Median
lifetable

Construct lifetable from mortality rates
plot.demogdata

Plot age-specific demographic functions
lca

Model mortality data using Lee-Carter approach
extract.years

Extract some years from a demogdata object
models

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

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

Plot differences between actuals and estimates from fitted demographic model
life.expectancy

Estimate life expectancy from mortality rates