tidy_competingevent | R Documentation |
This complements gg_ajurvplot2, provides the intermediate data for advanced ggplot manipulation
tidy_competingevent(
formula,
data,
weights,
subset,
na.action,
main.event,
competing.event,
count,
id,
timefix,
tidy_types,
...
)
formula |
A standard model formula, with survival on the left and covariates on the right |
data |
an optional data frame, list or environment (or object coercible by as.data.frame to a data frame) containing the variables in the model |
weights , subset , na.action , count , id , timefix |
parameter passed to finegray model. See |
main.event , competing.event |
main and competing event to plot |
tidy_types |
[c(main='risk', competing='survival')] summarisiation for main and competing events |
... |
other parameters passed to finegray (excluding etype) |
a tibble
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.