Learn R Programming

SmoothHazard (version 1.0.9)

plot.shrWeib: Plot Method for survival using a parametrical approach.

Description

Plot estimated survival hazard function, more generally of a class `shrWeib' object. Confidence bands are allowed.

Usage

## S3 method for class 'shrWeib':
plot(x, ...)

Arguments

x
a fitted survival model using a parametrical weibull function (output from calling shr
...
Other graphical parameters like those in plot.shr

Value

  • Print a plot of hazard function and survival function of a class shrWeib object

See Also

print.shrWeib,summary.shrWeib,shr,

Examples

Run this code
/*** Weibull survival model ***/
data(test)
fit.su <- shr(Hist(time=list(l,r),id)~cov,data=test) 

# no confidence bands
plot(fit.su,conf.bands=FALSE)

# confidence bands
plot(fit.su)

Run the code above in your browser using DataLab