Learn R Programming

SmoothHazard (version 1.0.9)

plot.idmWeib: Plot method for an illness-death model using a Weibull approach.

Description

Plot estimated baseline transition intensities from an object of class idmWeib. Confidence bands are allowed.

Usage

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

Arguments

x
a idmWeib class object (output from calling idm with the (default) option hazard="Weib".
...
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 Weibull approach.

See Also

print.idmWeib,summary.idmWeib,idm,

Examples

Run this code
/*** Weibull 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) 

# no confidence bands
plot(fit.weib)

Run the code above in your browser using DataLab