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

## Documentation for package ‘vital’ version 1.1.0

- DESCRIPTION file.
- Package NEWS.

## Help Pages

age_components | Extract age components from a model
as_vital | Coerce to a vital object
as_vital.data.frame | Coerce to a vital object
as_vital.demogdata | Coerce to a vital object
as_vital.tbl_ts | Coerce to a vital object
aus_fertility | Australian fertility data
aus_mortality | Australian mortality data
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 rates are recomputed where possible.
FDM | Functional data model
FMEAN | Functional mean model
FNAIVE | Functional naive model
forecast.FDM | Produce forecasts from a vital model
forecast.FMEAN | Produce forecasts from a vital model
forecast.FNAIVE | Produce forecasts from a vital model
forecast.LC | Produce forecasts from a vital model
forecast.mdl_vtl_df | Produce forecasts from a vital model
generate.mdl_vtl_df | Generate responses from a mable
interpolate.mdl_vtl_df | 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.vital | Estimate models for vital data
net_migration | Calculate net migration from a vital object
norway_births | Norwegian mortality and births data
norway_fertility | Norwegian mortality and births data
norway_mortality | Norwegian mortality and births data
read_hfd | Read data directly from HFD and construct a 'vital' object for use in other functions
read_hfd_files | Read data from files downloaded from HFD and construct a 'vital' object for use in other functions
read_hmd | Read data directly from HMD and construct a 'vital' object for use in other functions
read_hmd_files | Read data from files downloaded from HMD and construct a 'vital' object for use in other functions
report.FDM | Functional data model
report.FMEAN | Functional mean model
report.FNAIVE | Functional naive model
report.LC | Lee-Carter model
smooth_fertility | Functions to smooth demographic data
smooth_loess | Functions to smooth demographic data
smooth_mortality | Functions to smooth demographic data
smooth_spline | 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 | Create a vital object
vital_vars | Return vital variables