Learn R Programming

SmoothHazard (version 1.0.9)

plot.idmPl: Plot method for an illness-death model using a penalized likelihood approach.

Description

Plot estimated baseline transition intensities from a idmPl class object. Confidence bands are allowed.

Usage

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

Arguments

x
a idmPl class object (output from calling idm with the option hazard="Splines".
...
other graphical parameters like those in plot.idm

Value

  • Print a plot of the baseline transition intensities of an illness-death model estimated using a penalized log-likelihood approach.

See Also

print.idmPl,summary.idmPl,idm,

Examples

Run this code
# illness deaths model  ***/
data(Paq1000)
d <- Paq1000
names(d) <- c("dementia","mort","entry","L","R","time","certif","death")

fit.weib <- idm(formula02=Hist(time,event=death,entry=entry)~certif,
formula01=Hist(time=list(L,R),event=dementia)~certif,data=d
,irec=0,igraph=1,hazard="Splines",eps=c(1,1,1)) 

# no confidence bands
plot(fit.weib)

Run the code above in your browser using DataLab