vital1.1.0 package

Tidy Analysis Tools for Mortality, Fertility, Migration and Population Data

FMEAN

Functional mean model

FNAIVE

Functional naive model

reexports

Objects exported from other packages

age_components

Extract age components from a model

as_vital

Coerce to a vital object

autoplot.fbl_vtl_ts

Plot forecasts from a vital model

autoplot.mdl_vtl_df

Plot output from a vital model

autoplot.vital

Rainbow plot of demographic data against age

collapse_ages

Collapse upper ages into a single age group. Counts are summed while r...

FDM

Functional data model

forecast

Produce forecasts from a vital model

generate

Generate responses from a mable

interpolate

Interpolate missing values using a vital model

LC

Lee-Carter model

life_expectancy

Compute life expectancy from age-specific mortality rates

life_table

Compute period lifetables from age-specific mortality rates

make_pr

Do a product/ratio transformation

make_sd

Do a sum/difference transformation

model

Estimate models for vital data

net_migration

Calculate net migration from a vital object

read_hfd

Read data directly from HFD and construct a vital object for use in ...

read_hfd_files

Read data from files downloaded from HFD and construct a vital objec...

read_hmd

Read data directly from HMD and construct a vital object for use in ...

read_hmd_files

Read data from files downloaded from HMD and construct a vital objec...

smooth_vital

Functions to smooth demographic data

time_components

Extract time components from a model

total_fertility_rate

Compute total fertility rate from age-specific fertility rates

undo_pr

Undo a product/ratio transformation

undo_sd

Undo a mean/difference transformation

vital-package

vital: Tidy Analysis Tools for Mortality, Fertility, Migration and Pop...

vital

Create a vital object

vital_vars

Return vital variables

Analysing vital statistics based on tools consistent with the tidyverse. Tools are provided for data visualization, lifetable calculations, computing net migration numbers, Lee-Carter modelling; functional data modelling and forecasting.

  • Maintainer: Rob Hyndman
  • License: GPL-3
  • Last published: 2024-06-21