Learn R Programming

mvna (version 2.0.1)

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. The function can also plot several types of pointwise confidence interval (see Andersen et al. (1993) p.208).

Usage

# S3 method for 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 mvna.

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 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

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 c(1, 3, 3).

ci.type

DEPRECATED

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

xyplot, mvna, sir.adm,sir.cont