plot.shr: Plot method for a survival model.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/plot.shr.R

Description

Plot estimated baseline survival function from an object of class shr. Pointwise confidence limits are available.

Usage

1
2
3
4
5
## S3 method for class 'shr'
plot(x, type = "shr", add = FALSE, newdata = NULL,
  cause = NULL, col, lty, lwd, ylim, xlim, xlab = "Time", ylab,
  legend = TRUE, confint = TRUE, timeOrigin = 0, axes = TRUE,
  percent = TRUE, ...)

Arguments

x

a shrWeib or a shrSplines class object (output from calling shr function).

type

type of function to plot. The default is "shr".

add

boolean.

newdata

newdata.

cause

cause.

col

col.

lty

lty.

lwd

lwd.

ylim

ylim.

xlim

xlim.

xlab

xlab.

ylab

ylab.

legend

legend.

confint

confint.

timeOrigin

timeOrigin.

axes

axes.

percent

percent.

...

other graphical parameters.

Value

Print a plot of a suvival model.

Author(s)

R: Celia Touraine <Celia.Touraine@isped.u-bordeaux2.fr> Fortran: Pierre Joly <Pierre.Joly@isped.u-bordeaux2.fr>

See Also

plot.shr

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Weibull survival model
library(prodlim)
data(testdata)
fit.su <- shr(Hist(time=list(l,r),id)~cov,data=testdata)

# pointwise confidence limits
plot(fit.su)

# no pointwise confidence limits
plot(fit.su,confint=FALSE)

SmoothHazard documentation built on May 2, 2019, 4:43 p.m.