vital2.0.2 package

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

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

cohort_components

Extract cohort components from a model

collapse_ages

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

FDM

Functional data model

FMEAN

Functional mean model

FNAIVE

Functional naive model

forecast

Produce forecasts from a vital model

GAPC

Generalized APC stochastic mortality model

generate_population

Future population simulation

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 life tables 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_files

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

read_hfd

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

read_hmd_files

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

read_hmd

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

read_ktdb_files

Read old-age mortality data from files downloaded from K-T database

read_ktdb

Read old-age mortality from Kannisto-Thatcher (K-T) database and const...

read_stmf_files

Read STMF data from files downloaded from HMD

read_stmf

Read Short-Term Mortality Fluctuations data from the Human Mortality D...

reexports

Objects exported from other packages

smooth_mortality_law

Function to smooth mortality rates using MortalityLaw package

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_vars

Return vital variables

vital-package

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

vital

Create a vital object

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

  • Maintainer: Rob Hyndman
  • License: GPL-3
  • Last published: 2026-01-18