Plot method for an object of class 'etm'. It draws the estimated transition probabilities in a basic scatterplot.
1 2 3 4 5 6 
x 
An object of class 'etm' 
tr.choice 
character vector of the form 'c("from to","from to")' specifying which transitions should be plotted. Default, all the transition probabilities are plotted 
xlab 
xaxis label. Default is "Time" 
ylab 
yaxis label. Default is "Transition Probability" 
col 
Vector of colour. Default is black 
lty 
Vector of line type. Default is 1:number of transitions 
xlim 
Limits of xaxis for the plot 
ylim 
Limits of yaxis for the plot 
conf.int 
Logical. Whether to display pointwise confidence intervals. Default is FALSE. 
level 
Level of the conficence intervals. Default is 0.95. 
ci.fun 
Transformation applied to the confidence intervals. It
could be different for all transition probabilities, though if

ci.col 
Colour of the confidence intervals. Default is

ci.lty 
Line type of the confidence intervals. Default is 3. 
legend 
A logical specifying if a legend should be added 
legend.pos 
A vector giving the legend's position. See

curvlab 
A character or expression vector to appear in the legend. Default is the name of the transitions 
legend.bty 
Box type for the legend 
... 
Further arguments for plot 
No value returned
Arthur Allignol, arthur.allignol@uniulm.de
plot.default
, legend
, etm
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20  data(sir.cont)
# Modification for patients entering and leaving a state
# at the same date
sir.cont < sir.cont[order(sir.cont$id, sir.cont$time), ]
for (i in 2:nrow(sir.cont)) {
if (sir.cont$id[i]==sir.cont$id[i1]) {
if (sir.cont$time[i]==sir.cont$time[i1]) {
sir.cont$time[i1] < sir.cont$time[i1]  0.5
}
}
}
tra < matrix(ncol=3,nrow=3,FALSE)
tra[1, 2:3] < TRUE
tra[2, c(1, 3)] < TRUE
my.etm < etm(sir.cont,c("0","1","2"),tra,"cens", s = 0)
plot(my.etm, tr.choice = c("0 0"))

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.