R/data.R

#' immdef
#'
#' Simulated data to use with the \code{\link{rpsftm}} function.
#'
#' @format A simulated data frame with 9 variables and 1000 observations representing a study where participants 
#' were randomly assigned to receive treatment immediately or deferred. Participants in the deferred 
#' arm could crossover and receive treatment. The primary endpoint was time to disease progression.
#' 
#' The data are based on a randomized controlled trial Concorde \doi{10.1016/S0140-6736(94)90006-X}
#' \describe{
#'    \item{id}{participant ID number}
#'    \item{def}{indicator that the participant was assigned to the Deferred treatment arm}
#'    \item{imm}{indicator that the participant was assigned to the Immediate treatment arm}
#'    \item{censyrs}{censoring time, in years, corresponding to the close of study minus the time of entry for each participant}
#'    \item{xo}{an indicator that crossover occurred}
#'    \item{xoyrs}{the time, in years, from entry to switching, or 0 for participants in the Immediate arm}
#'    \item{prog}{an indicator of disease progression (1), or censoring (0)}
#'    \item{progyrs}{time, in years, from entry to disease progression or censoring}
#'    \item{entry}{the time of entry into the study, measured in years from the date of randomisation}
#'  
#'   }
"immdef"

Try the rpsftm package in your browser

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

rpsftm documentation built on May 29, 2024, 2:37 a.m.