plotgcmrec: Plot Method for an object of class 'gcmrec'.

plot.gcmrecR Documentation

Plot Method for an object of class ‘gcmrec’.

Description

Plots estimated baseline survival and hazard functions from an object of class ‘gcmrec’.

Usage

## S3 method for class 'gcmrec'
plot(x, type.plot = "surv", ...)

Arguments

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

Value

Print a plot of class gcmrec

See Also

print.gcmrec

Examples


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")





isglobal-brge/gcmrec documentation built on April 24, 2024, 6:11 a.m.