plot.bcmmrm {bcmixed} | R Documentation |
Plot a bcmmrm Object.
Description
Plot for the model medians of each treatment groups with the 95 percent
confidence intervals stored in bcmmrmObject
.
Usage
## S3 method for class 'bcmmrm'
plot(
x,
robust = TRUE,
ssadjust = TRUE,
dt = 1,
timepoint = NULL,
tnom = TRUE,
xlab = NULL,
ylab = NULL,
xlim = NULL,
ylim = NULL,
lwd = 2,
col = NULL,
lty = NULL,
main = TRUE,
sub = NULL,
legend = TRUE,
loc = "topright",
verbose = FALSE,
...
)
Arguments
x |
an object inheriting from class " |
robust |
an optional logical value used to specify whether to apply
the robust inference. The default is |
ssadjust |
an optional logical value used to specify whether to apply
the empirical small sample adjustment. The default is |
dt |
an numeric value indicating shift length between groups
in the longitudinal median plot. A multiplying factor for the default
settings specified (e.g. if |
timepoint |
an numeric value of a specified level of |
tnom |
a optional logical value indicating the scale of x axis
of the longitudinal median plot. When |
xlab |
a title for the x axis. The default is |
ylab |
a title for the y axis. The default is |
xlim |
a numeric vector with length of 2 indicating limits of x
axis. The default is |
ylim |
a numeric vector with length of 2 indicating limits of y
axis. The default is |
lwd |
an optional positive numeric value indicating line width.
The default is |
col |
an integer or a character vector with length of the number of
groups indicating colors of lines for each treatment group. The default is
|
lty |
an optional integer or a character vector with length of the
number of groups indicating line types of lines for each treatment group.
The default is |
main |
a main title for the plot. The default is |
sub |
a sub title for the plot. The default is |
legend |
a logical optional value specifying to add legends to
plots. When |
loc |
a character value indicating the location of the legends.
The location can be specified by setting |
verbose |
a logical optional value specifying to print the detailed
analysis information in the console. The default is |
... |
some methods for this generic require additional arguments. |
Value
a median plot.
See Also
Examples
data(aidscd4)
resar <- bcmmrm(outcome = cd4, group = treatment, data = aidscd4,
time = weekc, id = id, structure = "AR(1)", glabel =
c("Zid/Did", "Zid+Zal", "Zid+Did", "Zid+Did+Nev"))
plot(resar, xlab = "Week", ylab = "CD4+1", col = 1:4, main = NULL)
plot(resar, timepoint = 32, xlab = "Treatment", ylab = "CD4+1")