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.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:

6.03 score 27 stars 12 scripts 148 downloads 41 exports 85 dependencies

Last updated 3 days agofrom:aa2806cf2a. Checks:ERROR: 7. Indexed: yes.

TargetResultDate
Doc / VignettesFAILNov 22 2024
R-4.5-winERRORNov 22 2024
R-4.5-linuxERRORNov 22 2024
R-4.4-winERRORNov 22 2024
R-4.4-macERRORNov 22 2024
R-4.3-winERRORNov 22 2024
R-4.3-macERRORNov 22 2024

Exports:age_componentsas_vitalaugmentautoplotcollapse_agesestimateFDMFMEANFNAIVEforecastgenerateglanceinterpolateLClife_expectancylife_tablemake_prmake_sdmodelnet_migrationread_hfdread_hfd_filesread_hmdread_hmd_filesread_ktdbread_ktdb_fileread_stmfread_stmf_filereportsmooth_fertilitysmooth_loesssmooth_mortalitysmooth_mortality_lawsmooth_splinetidytime_componentstotal_fertility_rateundo_prundo_sdvitalvital_vars

Dependencies:anytimeaskpassBHbitbit64bitopsclicliprcobscolorspacecpp11crayoncurldigestdistributionaldplyrellipsisfablefabletoolsfansifarvergenericsggdistggplot2gluegtableHMDHFDplushmshttrisobandjanitorjsonlitelabelinglatticelifecyclelubridatemagrittrMASSMatrixMatrixModelsmgcvmimeminpack.lmMortalityLawsmunsellnlmenumDerivopensslpatchworkpbapplypillarpkgconfigprettyunitsprogressprogressrpurrrquadprogquantregR6RColorBrewerRcppRCurlreadrrlangrvestscalesselectrsnakecaseSparseMstringistringrsurvivalsystibbletidyrtidyselecttimechangetsibbletzdbutf8vctrsviridisLitevroomwithrxml2

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
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