plot.TPreg {idmTPreg} | R Documentation |
Makes a plot for the estimated effect of covariate(s) on pre-specified transition probabilities together with 95\%
confidence bands along time, from time s
to time t
.
## S3 method for class 'TPreg' plot(x, covar, rug = TRUE, main, ylab, xlab, Ylim, ...)
x |
an object of class |
covar |
a character vector of the name(s) of covariate(s) |
rug |
if |
main |
an overall title for the plot |
ylab |
a title for the y axis |
xlab |
a title for the x axis |
Ylim |
a list of y limits |
... |
arguments to be passed to methods. |
TPreg
, and generic functions print.TPreg
, and summary.TPreg
.
data(colonTPreg) co13 <- TPreg( ~ Age + Nodes + treatment, colonTPreg, link = "logit", s = 0, R = 9, t = 1200, by = 110, trans = "13", ncores = 1) plot(co13, covar = "Nodes", Ylim = list(c(-0.5,0.5))) co11 <- TPreg( ~ Age + Nodes + treatment, colonTPreg, link = "logit", s = 0, by = 10, R = 199, t = 365*5, trans = "11") plot(co11, covar = c("Age", "Nodes", "treatmentLev", "treatmentLev.5FU"), Ylim = list(c(-0.1,0.1), c(-0.5,0.5), c(-2,2), c(-2,2)))