boxplot.bcmmrm {bcmixed} | R Documentation |
Box-whisker plot for a bcmmrm Object.
Description
Box-whisker plot for the transformed residuals of each treatment groups
at a specified time point with error bar plot (mean +- SD) using
bcmmrmObject
.
Usage
## S3 method for class 'bcmmrm'
boxplot(
x,
timepoint = NULL,
xlab = NULL,
ylab = NULL,
main = TRUE,
sub = NULL,
verbose = FALSE,
...
)
Arguments
x |
an object inheriting from class " |
timepoint |
an numeric value of a specified level of |
xlab |
a title for the x axis. The default is |
ylab |
a title for the y axis. The default is |
main |
a main title for the plot. The default is |
sub |
a sub title for the plot. The default is |
verbose |
a logical optional value specifying to print the detailed
plot information in the console. The default is |
... |
some methods for this generic require additional arguments. |
Value
a box-whisker plot for transformed residual.
See Also
Examples
data(aidscd4)
lmd.bl <- bcreg(cd4.bl ~ 1, data = aidscd4[aidscd4$weekc == 8, ])$lambda
aidscd4$cd4.bl.tr <- (aidscd4$cd4.bl ^ lmd.bl - 1) / lmd.bl
resar <- 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"))
boxplot(resar, xlab = "Treatment", col = 1:4)