Package: vital 1.1.0.9000

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

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.

Authors:Rob Hyndman [aut, cre, cph], Sixian Tang [aut], Miles McBain [ctb], Mitchell O'Hara-Wild [ctb]

vital_1.1.0.9000.tar.gz
vital_1.1.0.9000.zip(r-4.5)vital_1.1.0.9000.zip(r-4.4)vital_1.1.0.9000.zip(r-4.3)
vital_1.1.0.9000.tgz(r-4.5-any)vital_1.1.0.9000.tgz(r-4.4-any)vital_1.1.0.9000.tgz(r-4.3-any)
vital_1.1.0.9000.tar.gz(r-4.5-noble)vital_1.1.0.9000.tar.gz(r-4.4-noble)
vital_1.1.0.9000.tgz(r-4.4-emscripten)vital_1.1.0.9000.tgz(r-4.3-emscripten)
vital.pdf |vital.html
vital/json (API)
NEWS

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

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

Pkgdown site:https://pkg.robjhyndman.com

Datasets:

On CRAN:

Conda:

6.20 score 28 stars 18 scripts 148 downloads 49 exports 109 dependencies

Last updated 4 days agofrom:9bdf0d791b. Checks:9 ERROR. Indexed: yes.

TargetResultLatest binary
Doc / VignettesFAILMar 05 2025
R-4.5-winERRORMar 05 2025
R-4.5-macERRORMar 05 2025
R-4.5-linuxERRORMar 05 2025
R-4.4-winERRORMar 05 2025
R-4.4-macERRORMar 05 2025
R-4.4-linuxERRORMar 05 2025
R-4.3-winERRORMar 05 2025
R-4.3-macERRORMar 05 2025

Exports:age_componentsAPCas_vitalaugmentautoplotCBDcohort_componentscollapse_agesestimateFDMFMEANFNAIVEforecastGAPCgenerateglanceinterpolateLCLC2life_expectancylife_tableM7make_prmake_sdmodelnet_migrationPLATread_hfdread_hfd_filesread_hmdread_hmd_filesread_ktdbread_ktdb_fileread_stmfread_stmf_filereportRHsmooth_fertilitysmooth_loesssmooth_mortalitysmooth_mortality_lawsmooth_splinetidytime_componentstotal_fertility_rateundo_prundo_sdvitalvital_vars

Dependencies:anytimeaskpassBHbitbit64bitopsclicliprcobscolorspacecpp11crayoncurldigestdistributionaldotCall64dplyrellipsisfablefabletoolsfanplotfansifarverfieldsforecastfracdiffgenericsggdistggplot2gluegnmgtableHMDHFDplushmshttrisobandjanitorjsonlitelabelinglatticelifecyclelmtestlubridatemagrittrmapsMASSMatrixMatrixModelsmgcvmimeminpack.lmMortalityLawsmunsellnlmennetnumDerivopensslpatchworkpbapplypillarpkgconfigplyrprettyunitsprogressprogressrpurrrquadprogquantmodquantregqvcalcR6RColorBrewerRcppRcppArmadilloRCurlreadrrelimpreshape2rlangrootSolvervestscalesselectrsnakecasespamSparseMStMoMostringistringrsurvivalsystibbletidyrtidyselecttimechangetimeDatetseriestsibbleTTRtzdburcautf8vctrsviridisLitevroomwithrxml2xtszoo

Readme and manuals

Help Manual

Help pageTopics
Extract age components from a modelage_components
Coerce to a vital objectas_vital as_vital.data.frame as_vital.demogdata as_vital.tbl_ts
Australian fertility dataaus_fertility
Australian mortality dataaus_mortality
Plot forecasts from a vital modelautoplot.fbl_vtl_ts
Plot output from a vital modelautoplot.mdl_vtl_df
Rainbow plot of demographic data against ageautoplot.vital
Extract cohort components from a modelcohort_components
Collapse upper ages into a single age group. Counts are summed while rates are recomputed where possible.collapse_ages
Functional data modelFDM report.FDM
Functional mean modelFMEAN report.FMEAN
Functional naive modelFNAIVE report.FNAIVE
Produce forecasts from a vital modelforecast.FDM forecast.FMEAN forecast.FNAIVE forecast.GAPC forecast.LC forecast.mdl_vtl_df
Generalized APC stochastic mortality modelAPC CBD GAPC LC2 M7 PLAT report.GAPC RH
Generate responses from a mablegenerate.mdl_vtl_df
Interpolate missing values using a vital modelinterpolate.mdl_vtl_df
Lee-Carter modelLC report.LC
Compute life expectancy from age-specific mortality rateslife_expectancy
Compute period life tables from age-specific mortality rateslife_table
Do a product/ratio transformationmake_pr
Do a sum/difference transformationmake_sd
Estimate models for vital datamodel.vital
Calculate net migration from a vital objectnet_migration
Norwegian mortality and births datanorway_births norway_fertility norway_mortality
Read data directly from HFD and construct a 'vital' object for use in other functionsread_hfd
Read data from files downloaded from HFD and construct a 'vital' object for use in other functionsread_hfd_files
Read data directly from HMD and construct a 'vital' object for use in other functionsread_hmd
Read data from files downloaded from HMD and construct a 'vital' object for use in other functionsread_hmd_files
Read old-age mortality from Kannisto-Thatcher (K-T) database and construct a 'vital' object for use in other functionsread_ktdb
#' Read old-age mortality data from files downloaded from K-T databaseread_ktdb_file
Read Short-Term Mortality Fluctuations data from the Human Mortality Databaseread_stmf
Read STMF data from files downloaded from HMDread_stmf_file
Function to smooth mortality rates using MortalityLaw packagesmooth_mortality_law
Functions to smooth demographic datasmooth_fertility smooth_loess smooth_mortality smooth_spline
Extract time components from a modeltime_components
Compute total fertility rate from age-specific fertility ratestotal_fertility_rate
Undo a product/ratio transformationundo_pr
Undo a mean/difference transformationundo_sd
Create a vital objectvital
Return vital variablesvital_vars