Learn R Programming

frailtypack (version 2.2-16)

plot.additivePenal: Plot Method for an Additive frailty model.

Description

Plots estimated baseline survival and hazard functions of an additive frailty model, more generally of a class `additivePenal' object. Confidence bands are allowed.

Usage

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

Arguments

x
An fitted additive frailty model (output from calling additivePenal
...
Other graphical parameters like those in plot.frailtyPenal

Value

  • Print a plot of HR and survival function of a class additivePenal object

See Also

print.additivePenal,summary.additivePenal,additivePenal,

Examples

Run this code
data(dataAdditive) 
  modAdd<-additivePenal(Surv(t1,t2,event)~cluster(group)+var1+slope(var1),
                 correlation=TRUE,data=dataAdditive,n.knots=8,kappa1=862)

# It takes around 4 minutes to converge. 'var1' is boolean as a treatment variable. #

  plot(modAdd)

Run the code above in your browser using DataLab