Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

xyplot.etm

xyplot method for object of class 'etm'


Description

xyplot function for objects of class etm. Estimates of the transition probabilities are plotted as a function of time for all the transitions specified by the user.

Usage

## S3 method for class 'etm'
xyplot(x, data = NULL, tr.choice, col = c(1, 1, 1),
       lty = c(1, 3, 3),  xlab = "Time",
       ylab = "Transition probability",
       conf.int = TRUE, ci.fun = "linear", level = 0.95, ...)

Arguments

x

An object of class etm.

data

Useless.

tr.choice

A character vector of the form c("from to", "from to", ...) specifying the transition probabilities to be plotted. By default, all the direct transition probabilities are displayed.

col

Vector of colours for the curves.

lty

Vector of line types.

xlab

x-axis label. Default is "Time".

ylab

y-axis label. Default is "Estimated transition probability".

conf.int

Logical. Whether to draw pointwise confidence intervals. Default is TRUE.

ci.fun

A character vector specifying the transformation to be applied to the pointwise confidence intervals. It could be different for each transition probability, though if length(ci.fun) != length(tr.choice), only ci.fun[1] will be used. The possible transformations are "linear", "log", "log-log" and "cloglog". Default is "linear".

level

Level of the two-sided confidence intervals. Default is 0.95.

...

Further arguments for xyplot.

Value

An object of class trellis.

Author(s)

Arthur Allignol, arthur.allignol@gmail.com

See Also


etm

Empirical Transition Matrix

v1.1.1
MIT + file LICENSE
Authors
Mark Clements [aut, cre], Arthur Allignol [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.