R/example_data.R

#' Example data
#'
#' A simulated data set for a realistic scenario of a clinical trial.
#'
#'
#' @format
#' A `data.frame` with 1000 rows and 14 columns:
#'   - `id`: Integer variable with the id of the patient.
#'   - `arm`: Factor variable with 2 levels: control and treatment.
#'   - `x_1`, `x_2`, `x_3`, `x_4`, `x_5`, `x_6`, `x_7`, `x_8`, `x_9`, `x_10`:
#'    Factor variables that represent covariates of the patients
#'    (e.g. sex, region, race, etc.).
#'   - `tt_pfs`: Continuous variable with the progression free survival time
#'   of each patient.
#'   - `ev_pfs`: Binary variable with the progression free survival status
#'   of each patient. 0 indicates that the event of interest did not happen
#'   and 1 indicates that it did.
#' @source This is an artificial dataset.
"example_data"

Try the bonsaiforest package in your browser

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

bonsaiforest documentation built on Sept. 30, 2024, 9:46 a.m.