plot.TPreg: Plotting a TPreg object

Description Usage Arguments See Also Examples

Description

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.

Usage

1
2
## S3 method for class 'TPreg'
plot(x, covar, rug = TRUE, main, ylab, xlab, Ylim, ...)

Arguments

x

an object of class TPreg

covar

a character vector of the name(s) of covariate(s)

rug

if TRUE (default), it adds a rug representation of times between time s and time t.

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.

See Also

TPreg, and generic functions print.TPreg, and summary.TPreg.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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)))

idmTPreg documentation built on May 2, 2019, 3:35 p.m.