trialDataMF | R Documentation |
sample synthetic dataset of snSMART (mapping function) with continuous outcomes
trialDataMF
This data frame contains the following columns:
participant ID
treatment received in stage 1 - possible values: 1 (placebo), 2, 3
a number between 0-100 that represents the stage 1 treatment effect
indicates whether the participant stayed on the same treatment arm in stage 2 - possible values: 0 (didn't stay), 1 (stayed)
treatment received in stage 2 - possible values: 2, 3
a number between 0-100 that represents the stage 2 treatment effect
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.