Learn R Programming

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

demography (version 1.13)

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

2,160

Version

1.13

License

GPL (>= 2)

Maintainer

Rob Hyndman

Last Published

August 6th, 2012

Functions in demography (1.13)

fdm

Functional demographic model
update.fmforecast

Updating functional demographic models and coherent functional demographic models.
fr.mort

French mortality data
forecast.lca

Forecast demogdata data using Lee-Carter method.
residuals.fdm

Compute residuals and fitted values from functional demographic model or Lee-Carter model
tfr

Compute total fertility rate from fertility rates
extract.ages

Extract some ages from a demogdata object
read.demogdata

Read demographic data and construct demogdata object
smooth.demogdata

Create smooth demogdata functions
demogdata

Create demogdata object from raw data matrices
aus.fert

Australian fertility data
coherentfdm

Coherent functional demographic model for grouped data
mean.demogdata

Mean and median functions for data of class demogdata
netmigration

Calculate net migration from mortality and fertility data
plot.lifetable

Plot life expectancy from lifetable
median

Median
simulate.fmforecast

Simulate future sample paths from functional demographic model forecasts.
compare.demogdata

Evaluation of demographic forecast accuracy
sex.ratio

Compute sex ratios from mortality rates
demography-package

Forecasting mortality and fertility data
plot.fmforecast

Plot forecasts from a functional demographic modell
summary.fdm

Summary for functional demographic model or Lee-Carter model
combine.demogdata

Combine two demogdata objects into one demogdata object
lifetable

Construct lifetables from mortality rates
hmd.mx

Read demographic data from the Human Mortality Database
life.expectancy

Estimate life expectancy from mortality rates
cm.spline

Monotonic interpolating splines
set.upperage

Combine the upperages of a demogdata object.
plot.errorfdm

Plot differences between actuals and estimates from fitted demographic model
isfe

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

Plot residuals from fitted demographic model
extract.years

Extract some years from a demogdata object
models

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

Forecast functional demographic model.
lca

Model mortality data using Lee-Carter approach
forecast.fdmpr

Forecast coherent functional demographic model.
plot.demogdata

Plot age-specific demographic functions
pop.sim

Population simulation