# NOT RUN {
ds <- generate_ipdma_example(type = "continuous")
ipd <- with(ds, ipdma.model.onestage(y = y, study = studyid, treat = treat, X = cbind(z1, z2),
response = "normal", shrinkage = "none"))
# }
# NOT RUN {
samples <- ipd.run(ipd, pars.save = c("beta", "gamma", "delta"), n.chains = 3, n.burnin = 500,
n.iter = 5000)
treatment.effect(ipd, samples, newpatient = c(1,0.5))
# }
Run the code above in your browser using DataLab