Plots cumulative transition rates

Description

Plots cumulative transition rates by origin, destination, and age estimated by Cumrates. The required input data are provided by the Cumrates function.

Usage

1
2
## S3 method for class 'cumrates'
plot(x,ptrans,title,...)

Arguments

x

An object of class cumrates, produced by the Cumrates function.

ptrans

Selection of transitions to be plotted

title

Title

...

Further arguments to plot

Details

The function plots cumulative transition rates (cumulative hazard rates). If irate = 1 or irate = 3 it plots the Nelson-Aalen estimator at each birthday and adds lower and upper confidence intervals. If irate = 2 or irate = 3, it plots the cumulative occurrence-exposure rates. If irate = 3, the function plots both the Nelson-Aalen estimator (with confidence intervals) and the cumulative occurrence-exposure rate. The variable irate is an argument of the Cumrates function and included in the object produced by Cumrates.

Author(s)

Frans Willekens

Examples

1
2
3
4
5
    data(GLHS)
    Bdata.a <- date_b (GLHS,format.out="age",covs=c("marriage","LMentry"))
    cumrates <- Cumrates (irate = 3,Bdata=Bdata.a)
    z<- plot (x=cumrates,ptrans=c("NJ","JN")) 
  

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.