R/MortalityEstimate-data.R

Defines functions print.MortalityEstimateData

Documented in print.MortalityEstimateData

# --------------------------------------------------- #
# Author: Marius D. PASCARIU
# Last update: Sun May 02 18:45:12 2021
# --------------------------------------------------- #

# Data in the package ----

#' Death Rates for Female Populations in England and Wales, France, Sweden 
#' and USA 
#'
#' Dataset containing 4 matrices with death rates for 
#' female populations in England and Wales, France, Sweden and USA 
#' between 1965 and 2018. This data is provided for testing purposes only. 
#' It may not be up to date anymore. Download the actual data free of charge 
#' from \url{https://www.mortality.org}.  
#' @source Human Mortality Database, \url{https://www.mortality.org}.
"HMD4mx"

#' Print function for HMD4mx data
#' 
#' @param x A \code{MortalityEstimateData} object.
#' @param ... Further arguments passed to or from other methods.
#' @export
#' @keywords internal
print.MortalityEstimateData <- function(x, ...) {
  cat("\nMortalityEstimate Test Data\n")
  cat(" Populations : England and Wales, France, Sweden, USA\n")
  cat(" Series      : Death rates for females (raw)\n")
  cat(" Years       : 1965 - 2018\n")
  cat(" Ages        : 0 - 110\n")
  cat(" Format      : List containing 4 data frames\n")
  cat(" Source      : Human Mortality Database\n")
  cat(" Download    : September 30, 2020")
}


#' 719 Life Tables from HMD 
#' 
#' Data used in the Wilmoth et. al. (2012) article. Today this dataset is 
#' outdated. Download the actual data free of charge from 
#' \url{https://www.mortality.org}. 
#' @references John Wilmoth, Sarah Zureick, Vladimir Canudas-Romo, Mie Inoue & 
#' Cheryl Sawyer (2012): A flexible two-dimensional mortality model for use in 
#' indirect estimation, Population Studies: A Journal of Demography, 66:1, 1-28
#' \doi{10.1080/00324728.2011.611411}
#' @source Human Mortality Database, \url{https://www.mortality.org}. (2012)
"HMD719"
mpascariu/MortalityEstimate documentation built on May 11, 2021, 6:33 p.m.