plot.additivePenal {frailtypack} | R Documentation |
Plots estimated baseline survival and hazard functions of an additive frailty model, more generally of a class `additivePenal' object. Confidence bands are allowed.
## S3 method for class 'additivePenal': plot(x, type.plot = "hazard", conf.bands=TRUE, ...)
x |
An fitted additive frailty model (output from calling additivePenal
function). |
type.plot |
a character string specifying the type of curve. Possible value are "hazard", or "survival". The default is "hazard". Only the first words are required, e.g "haz", "su" |
conf.bands |
logical value. Determines whether confidence bands will be plotted. The default is to do so. |
... |
Other graphical parameters |
Print a plot of HR and survival function of a class additivePenal
object
print.additivePenal
,summary.additivePenal
,additivePenal
,
## Not run: 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) ## End(Not run)