R/multiRecCVD.R

#' Simulated dataset with two types of multi-type recurrent events
#'
#' A dataset containing 1403 rows and 5 variables. Each row represents an
#' interval, with individuals having one or more intervals.
#'
#' @format A data frame with 1403 rows and 8 variables:
#' \describe{
#'   \item{id}{integer, a unique participant id}
#'   \item{age}{integer, age of the participant in years}
#'   \item{male}{integer, 1 if the participant is male, 0 if female}
#'   \item{bmi}{numeric, body mass index}
#'   \item{tstart}{numeric, the start time for the interval}
#'   \item{tstop}{numeric, the stop time for the interval}
#'   \item{event}{character, the event that occurred at the end of the interval.
#'     this is either the event type ('afib' or 'hf') or an
#'     empty string if no event occurred}
#' }
"multiRecCVD2"

#' Simulated dataset with four types of  multi-type recurrent events
#'
#' A dataset containing 3119 rows and 5 variables. Each row represents an
#' interval, with individuals having one or more intervals.
#'
#' @format A data frame with 1403 rows and 8 variables:
#' \describe{
#'   \item{id}{integer, a unique participant id}
#'   \item{age}{integer, age of the participant in years}
#'   \item{male}{integer, 1 if the participant is male, 0 if female}
#'   \item{bmi}{numeric, body mass index}
#'   \item{tstart}{numeric, the start time for the interval}
#'   \item{tstop}{numeric, the stop time for the interval}
#'   \item{event}{character, the event that occurred at the end of the interval.
#'     this is either the event type ('afib', 'stroke', 'hf' or 'death') or an
#'     empty string if no event occurred}
#' }
"multiRecCVD4"

Try the multiRec package in your browser

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

multiRec documentation built on Feb. 3, 2026, 5:06 p.m.