R/binomialdata.R

#' Binomial dataset for analyzing adaptive Bayesian trials
#'
#' A dataset containing the results of 300 patients with binomial outcome,
#' the dataset is filled with loss to follow up.
#'
#' @docType data
#'
#' @keywords dataset
#'
#' @usage data(binomialdata)
#'
#' @format A data frame with 300 rows and 4 variables:
#' \describe{
#'   \item{id}{Patient ID in the trial}
#'   \item{treatment}{treatment assignment for patients, 1 for treatment group
#'   0 for control group}
#'   \item{outcome}{binomial outcome of the trial, 1
#'   for response (success or failure), 0 for no response}
#'   \item{complete}{1 for complete outcome, 0 for loss to follow up}
#' }
#'
#' @examples
#' data(binomialdata)
"binomialdata"

Try the bayesCT package in your browser

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

bayesCT documentation built on July 2, 2020, 2:34 a.m.