R/data.r

#' Immigrant population data for the migration-flow examples
#'
#' Entrants arriving after the simulation start, used in the migration-flow
#' vignette.
#'
#' @format ## `immigrPopMigrExp`
#' A data frame with 3758 rows and 4 columns:
#' \describe{
#'   \item{ID}{individual identifier}
#'   \item{immigrDate}{immigration date}
#'   \item{birthDate}{birth date}
#'   \item{immigrInitState}{initial state of the individual, as per the state space}
#' }

"immigrPopMigrExp"

#' Initial population data for the migration-flow examples
#'
#' Starting population used in the migration-flow vignette.
#'
#' @format ## `initPopMigrExp`
#' A data frame with 72965 rows and 3 columns:
#' \describe{
#'  \item{ID}{individual identifier}
#'  \item{birthDate}{birth date}
#'  \item{initState}{initial state of the individual, as per the state space}
#' }

"initPopMigrExp"

#' Transition-rate data for the migration-flow examples
#'
#' Data used to construct transition rates in the migration-flow vignette.
#'
#' @format ## `migrExpRates`
#' A data frame with 100 rows and 30 columns:
#' \describe{
#'   \item{mort_f_ES}{mortality rate for females from Spain}
#'   \item{mort_f_NL}{mortality rate for females from the Netherlands}
#'   \item{mort_f_SE}{mortality rate for females from Sweden}
#'   ...
#' }

"migrExpRates"

#' Old transition-rate data for the MDD example, by single year of age
#'
#' This dataset is superseded by [rates_mdd_groups].
#' Data used to construct transition rates for the MDD example.
#'
#' @format ## `rates_mdd`
#' A data frame with 49 rows and 17 columns:
#' \describe{
#'   \item{age}{age of the individual}
#'   \item{incidence_lo_m}{incidence rate, low education, men}
#'   \item{cf_incidence_lo_f}{counterfactual incidence rate, low education, women}
#'   ...
#' }
#' @source https://doi.org/10.1093/eurpub/ckae066
"rates_mdd"

#' Age-group transition rates for the Educational Inequalities in Depression Vignette
#'
#' Annual rates of developing (incidence) and recovering from (remission) major
#' depressive disorder (MDD), by education level, sex and age group, as estimated
#' in Lepe et al. (2024). 
#'
#' @format ## `rates_mdd_groups`
#' A data frame with 10 rows and 17 columns. All rates are annual rates, given
#' as proportions:
#' \describe{
#'   \item{age}{Midpoint of age group in years}
#'   \item{incidence_lo_m}{incidence rate, low education, men}
#'   \item{cf_incidence_lo_f}{counterfactual incidence rate, low education, women}
#'   ...
#' }
#' @source https://doi.org/10.1093/eurpub/ckae066
"rates_mdd_groups"

Try the MicSim package in your browser

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

MicSim documentation built on Dec. 2, 2026, 1:09 a.m.