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], 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.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'))

Peer review:

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

Datasets:

On CRAN:

36 exports 25 stars 2.89 score 86 dependencies 9 scripts 140 downloads

Last updated 1 months agofrom:b706cc1990. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 05 2024
R-4.5-winOKSep 05 2024
R-4.5-linuxOKSep 05 2024
R-4.4-winOKSep 05 2024
R-4.4-macOKSep 05 2024
R-4.3-winOKSep 05 2024
R-4.3-macOKSep 05 2024

Exports:age_componentsas_vitalaugmentautoplotcollapse_agesestimateFDMFMEANFNAIVEforecastgenerateglanceinterpolateLClife_expectancylife_tablemake_prmake_sdmodelnet_migrationread_hfdread_hfd_filesread_hmdread_hmd_filesreportsmooth_fertilitysmooth_loesssmooth_mortalitysmooth_splinetidytime_componentstotal_fertility_rateundo_prundo_sdvitalvital_vars

Dependencies:anytimeaskpassBHbitbit64clicliprcobscodetoolscolorspacecpp11crayoncurldigestdistributionaldplyrellipsisfablefabletoolsfansifarverfuturefuture.applygenericsggdistggplot2globalsgluegtableHMDHFDplushmshttrisobandjanitorjsonlitelabelinglatticelifecyclelistenvlubridatemagrittrMASSMatrixMatrixModelsmgcvmimemunsellnlmenumDerivopensslparallellypatchworkpillarpkgconfigprettyunitsprogressprogressrpurrrquadprogquantregR6RColorBrewerRcppreadrrlangrvestscalesselectrsnakecaseSparseMstringistringrsurvivalsystibbletidyrtidyselecttimechangetsibbletzdbutf8vctrsviridisLitevroomwithrxml2

Introduction to the vital package

Rendered fromintro.Rmdusingknitr::rmarkdownon Sep 05 2024.

Last update: 2024-06-26
Started: 2024-06-25

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
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.LC forecast.mdl_vtl_df
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
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