trialDataMF {snSMART} | R Documentation |
Dataset with continuous outcomes
Description
sample dataset of snSMART (mapping function) with continuous outcomes
Usage
trialDataMF
Format
This data frame contains the following columns:
- id
participant ID
- trt1
treatment received in stage 1 - possible values: 1 (placebo), 2, 3
- stage1outcome
a number between 0-100 that represents the stage 1 treatment effect
- stay
indicates whether the participant stayed on the same treatment arm in stage 2 - possible values: 0 (didn't stay), 1 (stayed)
- trt2
treatment received in stage 2 - possible values: 2, 3
- stage2outcome
a number between 0-100 that represents the stage 2 treatment effect
Examples
trialData <- trialDataMF
BJSM_result <- BJSM_c(
data = trialData, xi_prior.mean = c(50, 50, 50),
xi_prior.sd = c(50, 50, 50), phi3_prior.sd = 20, n_MCMC_chain = 1,
n.adapt = 1000, MCMC_SAMPLE = 5000, ci = 0.95, n.digits = 5
)
summary(BJSM_result)
print(BJSM_result)
[Package snSMART version 0.2.3 Index]