Learn R Programming

mvna (version 1.0-2)

xyplot.mvna: 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. This function could 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, ci.type = c(1, 2), level = 0.05,
              col = c(1, 1, 1), lty = c(1, 3, 3), ...)

Arguments

x
An object of class 'mvna'.
data
Useless. Just to avoid warnings while compiling the package.
xlab
x-axis label. Default is "Time".
ylab
y-axis label. Default is "Cumulative Hazard"
tr.choice
A character vector of the form 'c("from to","from to")' specifying which transitions should be plotted. Default is "all".
conf.int
A logical whether plot pointwise confidence interval. Default is TRUE
ci.type
A vector of 2 integer coding for the confidence interval type. The first part of the vector can be 1 or 2, 1 for the variance estimator described in eq. (4.1.6) of Andersen et al. (1993), 2 for the one described in eq. (4.1.7). The second part
level
Level of the confidence interval. Default is 0.05.
col
Vector of colour for the plot. Default is black.
lty
Vector of line type. Default is c(1,3,3)
...
Other arguments for xyplot

Value

  • An object of class 'trellis'.

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

mvna, sir.adm,sir.cont