R/sim_data.R

#' Simulated mortality data set
#'
#' A data set containing simulated age at death and covariates according to
#' a truncated Gompertz distribution with proportional hazards
#'
#' @format A data frame with 6732 rows and 6 variables:
#' \describe{
#'   \item{aod}{Age at death, in integer years}
#'   \item{byear}{Calendar year of birth}
#'   \item{dyear}{Calendar year of death}
#'   \item{temp}{Temperature}
#'   \item{sex}{Sex (0 = male, 1 = female)}
#'   \item{isSouth}{Live in south (0 = FALSE, 1 = TRUE)}
#'
#' }
"sim_data"

Try the gompertztrunc package in your browser

Any scripts or data that you put into this service are public.

gompertztrunc documentation built on May 29, 2024, 4:56 a.m.