| xyplot.mvna {mvna} | R Documentation |
Panel plots for object of class 'mvna'
Description
xyplot function for objects of class mvna. Estimates of the
cumulative hazards are plotted as a function of time for all the
transitions specified by the user. The function can also plot
several types of pointwise confidence interval (see Andersen et
al. (1993) p.208).
Usage
## S3 method for class 'mvna'
xyplot(x, data = NULL, xlab = "Time",
ylab = "Cumulative Hazard", tr.choice = "all",
conf.int = TRUE, var.type = c("aalen", "greenwood"),
ci.fun = c("log", "linear", "arcsin"), level = 0.95,
col = c(1, 1, 1), lty = c(1, 3, 3),
ci.type = c(1, 2), ...)
Arguments
x |
An object of class |
data |
Useless. |
xlab |
x-axis label. Default is "Time". |
ylab |
y-axis label. Default is "Cumulative Hazard" |
tr.choice |
A character vector of the form |
conf.int |
A logical whether plot pointwise confidence interval. Default is TRUE |
var.type |
One of "aalen" or "greenwood". Specifies which variance estimator is used to compute the confidence intervals. |
ci.fun |
One of "log", "linear" or "arcsin". Indicates the transformation applied to the pointwise confidence intervals. Default is "log". |
level |
Level of the confidence interval. Default is 0.95. |
col |
Vector of colour for the plot. Default is black. |
lty |
Vector of line type. Default is |
ci.type |
DEPRECATED |
... |
Other arguments for xyplot. |
Value
An object of class trellis.
Note
These plots are highly customizable, see
Lattice and xyplot. For
example, if one want to change strip background color and the title of
each strip, it can be added 'strip=strip.custom(bg="a
color",factor.levels="a title","another title")'. One can use
'aspect="1"' to get the size of the panels isometric.
Author(s)
Arthur Allignol, arthur.allignol@fdm-freiburg.de
References
Andersen, P.K., Borgan, O., Gill, R.D. and Keiding, N. (1993). Statistical models based on counting processes. Springer Series in Statistics. New York, NY: Springer.
Deepayan Sarkar (2006). lattice: Lattice Graphics. R package version 0.13-8.
See Also
xyplot, mvna, sir.adm,sir.cont