plot.gcmrec {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 gcmrec (output from calling gcmrec
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" |
... |
Other graphical parameters |
Print a plot of class 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")