Learn R Programming

snSMART (version 0.2.4)

data_dose: Dose Level dataset with binary outcomes

Description

sample synthetic dataset of snSMART (dose level treatment) with binary outcomes

Usage

data_dose

Arguments

Format

This data frame contains the following columns:

treatment_stageI

treatment received in stage 1 - possible values: 1 (placebo), 2, 3

response_stageI

whether patients respond to stage 1 treatment - possible values: 0 (nonresponder), 1 (responder)

treatment_stageII

treatment received in stage 2 - possible values: 2, 3

response_stageII

whether patients respond to stage 2 treatment - possible values: 0 (nonresponder), 1 (responder)

Examples

Run this code
mydata <- data_dose
BJSM_dose_result <- BJSM_binary(
  data = data_dose, prior_dist = c("beta", "gamma"),
  pi_prior = c(3, 17), normal.par = c(0.2, 100), beta_prior = c(2, 2),
  n_MCMC_chain = 2, n.adapt = 100, MCMC_SAMPLE = 2000, ci = 0.95
)

Run the code above in your browser using DataLab