graph.caltimes | R Documentation |
Plots calendar times at succesive recurrences from a data set. Information about effective age and categories of covariates are allowed.
graph.caltimes(data, var = NULL, effageData = NULL, width = 2,
lines = TRUE, sortevents = TRUE, ...)
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 |
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.