graph.caltimes {gcmrec}R Documentation

Plot of recurrent events

Description

Plots calendar times at succesive recurrences from a data set. Information about effective age and categories of covariates are allowed.

Usage

graph.caltimes(data, var = NULL, effageData = NULL, width = 2, 
        lines = TRUE, sortevents = TRUE, ...)

Arguments

data data frame containing id, time, event variables and some other covariates
var categorical variable
effageData effective age function information
width point width
lines Are horizontal lines printed? The default is TRUE
sortevents Are events sorted? The default is TRUE
... other graphical parameters

Examples


# with data in a data frame 
library(survival)
data(bladder2)
bladder2$time<-bladder2$stop-bladder2$start

graph.caltimes(bladder2)

# or data in a list

data(hydraulic)
graph.caltimes(hydraulic)

# We can print some covariate as follows:
graph.caltimes(bladder2,bladder2$rx)

[Package gcmrec version 1.0-3 Index]