Package: demography 2.0.0.9000

demography: 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.

Authors:Rob Hyndman [aut, cre, cph], Heather Booth [ctb], Leonie Tickle [ctb], John Maindonald [ctb], Simon Wood [ctb], R Core Team [ctb]

demography_2.0.0.9000.tar.gz
demography_2.0.0.9000.zip(r-4.5)demography_2.0.0.9000.zip(r-4.4)demography_2.0.0.9000.zip(r-4.3)
demography_2.0.0.9000.tgz(r-4.4-any)demography_2.0.0.9000.tgz(r-4.3-any)
demography_2.0.0.9000.tar.gz(r-4.5-noble)demography_2.0.0.9000.tar.gz(r-4.4-noble)
demography_2.0.0.9000.tgz(r-4.4-emscripten)demography_2.0.0.9000.tgz(r-4.3-emscripten)
demography.pdf |demography.html
demography/json (API)
NEWS

# Install 'demography' in R:
install.packages('demography', repos = c('https://robjhyndman.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/robjhyndman/demography/issues

Datasets:

On CRAN:

actuarialdemographyforecasting

8.18 score 73 stars 6 packages 228 scripts 2.5k downloads 27 exports 168 dependencies

Last updated 1 years agofrom:3f45c28586. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 30 2024
R-4.5-winOKOct 30 2024
R-4.5-linuxOKOct 30 2024
R-4.4-winOKOct 30 2024
R-4.4-macOKOct 30 2024
R-4.3-winOKOct 30 2024
R-4.3-macOKOct 30 2024

Exports:bmscm.splinecm.splinefuncoherentfdmcombine.demogdatacompare.demogdatademogdatae0extract.agesextract.yearsfdmflife.expectancyhmd.e0hmd.mxhmd.popisfelcalife.expectancylifetablemodelsnetmigrationpop.simread.demogdataset.upperagesex.ratiosmooth.demogdatatfr

Dependencies:abindashaskpassbackportsbase64encbitbit64bitopsbootbslibcachemcheckmateclassclicliprclustercobscolorspacecpp11crayoncurlcvardata.tabledeSolvedigestdplyre1071ecpevaluateevgamfansifarverfastICAfastmapfBasicsfdafdapacefdsfGarchFNNfontawesomeforecastforeignFormulafracdifffsftsagbutilsgenericsgeometryggplot2glueGPArotationgridExtragssgtablehdrcdehighrHMDHFDplusHmischmshtmlTablehtmltoolshtmlwidgetshttrisobandjanitorjquerylibjsonlitekernlabKernSmoothknitrkslabelingLaplacesDemonlatticelifecyclelinprogLmomentslmtestlocfitlpSolvelubridatemagicmagrittrMASSMatrixMatrixModelsmclustmemoisemgcvmimemnormtmulticoolmunsellmvtnormnlmennetnumDerivopensslpcaPPpdfClusterpillarpkgconfigpracmaprettyunitsprogressproxypsychpurrrquadprogquantmodquantregR6rainbowrappdirsrbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRcppProgressRCurlRdpackreadrrlangrmarkdownROOPSDrpartrstudioapirvestsandwichsassscalessdeselectrsnakecaseSparseMspatialstablediststringistringrstrucchangesurvivalsystibbletidyrtidyselecttimechangetimeDatetimeSeriestinytextseriesTTRtzdburcautf8varsvctrsviridisviridisLitevroomwithrxfunxml2xtsyamlzoo

Readme and manuals

Help Manual

Help pageTopics
Forecasting mortality and fertility datademography-package demography
Coerce a demogdata object to a data.frame objectas.data.frame.demogdata
Australian fertility dataaus.fert
Monotonic interpolating splinescm.spline cm.splinefun monotonic
Coherent functional demographic model for grouped datacoherentfdm
Combine two demogdata objects into one demogdata objectcombine.demogdata
Evaluation of demographic forecast accuracycompare.demogdata
Create demogdata object from raw data matricesdemogdata
Extract some ages from a demogdata objectextract.ages
Extract some years from a demogdata objectextract.years
Functional demographic modelfdm
Forecast functional demographic model.forecast.fdm
Forecast coherent functional demographic model.forecast.fdmpr
Forecast demogdata data using Lee-Carter method.forecast.lca
French mortality datafr.mort fr.sm
Read data from HMD and construct a mortality demogdata objecthmd hmd.e0 hmd.mx hmd.pop
Integrated Squared Forecast Error for models of various ordersisfe isfe.demogdata
Model mortality or fertility data using Lee-Carter approachbms lca
Estimate life expectancy from mortality ratese0 flife.expectancy life.expectancy
Construct lifetables from mortality rateslifetable
Mean and median functions for data of class demogdatamean.demogdata median.demogdata
Show model information for the forecast coefficients in FDM models.models models.fmforecast models.fmforecast2
Calculate net migration from mortality and fertility datanetmigration
Plot age-specific demographic functionslines.demogdata plot.demogdata points.demogdata
Plot differences between actuals and estimates from fitted demographic modelplot.errorfdm
Plot forecasts from a functional demographic modellplot.fmforecast plot.lca
Plot life expectancy from lifetablelines.lifetable plot.lifetable
Population simulationpop.sim
Read demographic data and construct demogdata objectread.demogdata
Compute residuals and fitted values from functional demographic model or Lee-Carter modelfitted.fdm fitted.lca residuals.fdm residuals.lca
Combine the upperages of a demogdata object.set.upperage
Compute sex ratios from mortality ratessex.ratio
Simulate future sample paths from functional demographic model forecasts.simulate.fmforecast simulate.fmforecast2
Create smooth demogdata functionssmooth.demogdata
Summary for functional demographic model or Lee-Carter modelsummary.fdm summary.lca
Compute total fertility rate from fertility ratestfr
Updating functional demographic models and coherent functional demographic models.update update.fmforecast update.fmforecast2