Description Usage Arguments Value Author(s) See Also Examples
Lines method for mvna
objects.
1 2 3 4 5 |
x |
An object of class |
tr.choice |
A character vector of the form |
col |
A vector of colours. Default is black. |
lty |
A vector of line types. Default is 1:number of transitions. |
conf.int |
Logical. Indicates whether to display pointwise
confidence interval. Default is |
level |
Level of the confidence interval. Default is 0.95. |
var.type |
Specifies the variance estimator that should be used to compute the confidence interval. One of "aalen" or "greenwood". Default is "aalen". |
ci.fun |
Specifies the transformation applied to the confidence interval. Choices are "linear", "log", "arcsin". Default is "log". |
ci.col |
Colours of the confidence interval lines. By default,
|
ci.lty |
Line types for the confidence intervals. Default is 3. |
... |
Further arguments for |
No value returned.
Arthur Allignol, arthur.allignol@uni-ulm.de
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | data(sir.adm)
## data set transformation
data(sir.adm)
id <- sir.adm$id
from <- sir.adm$pneu
to <- ifelse(sir.adm$status==0,"cens",sir.adm$status+1)
times <- sir.adm$time
dat.sir <- data.frame(id,from,to,time=times)
## Possible transitions
tra <- matrix(ncol=4,nrow=4,FALSE)
tra[1:2,3:4] <- TRUE
na.pneu <- mvna(dat.sir,c("0","1","2","3"),
tra,"cens")
plot(na.pneu, tr.choice = c("0 2"), conf.int = TRUE,
col = 1, lty = 1, legend = FALSE)
lines(na.pneu, tr.choice = c("1 2"), conf.int = TRUE,
col = 2, lty = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.