plot.gcmrec | R Documentation |
Plots estimated baseline survival and hazard functions from an object of class ‘gcmrec’.
## S3 method for class 'gcmrec'
plot(x, type.plot = "surv", ...)
x |
Object of class |
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" |
... |
Other graphical parameters |
Print a plot of class gcmrec
print.gcmrec
data(lymphoma)
mod<-gcmrec(Survr(id,time,event)~as.factor(distrib),data=lymphoma,s=1000)
# baseline survivor function
plot(mod)
# baseline hazard function
plot(mod,type="haz")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.