# NOT RUN {
data(aidscd4)
# covariate: Box-Cox transformed baseline (continuous) and sex (nominal),
# covariance structure: AR(1) structure
# *Note: The UN structure is preferred although the AR(1)
# structure is used in this example to reduce calculation time
# Box-Cox transformation for the baseline
aidscd4$cd4.bl.tr <- bct.v(aidscd4$cd4.bl)$transformed
# Median inference for each group and week
bcmmrm(outcome = cd4, group = treatment, data = aidscd4, time = weekc,
id = id, covv = c("cd4.bl.tr", "sex"), cfactor = c(0, 1),
structure = "AR(1)", glabel = c("Zid/Did", "Zid+Zal", "Zid+Did",
"Zid+Did+Nev"))
# }
Run the code above in your browser using DataLab