tidy_competingevent: Tidy competing risk mstate survival fit.

tidy_competingeventR Documentation

Tidy competing risk mstate survival fit.

Description

This complements gg_ajurvplot2, provides the intermediate data for advanced ggplot manipulation

Usage

tidy_competingevent(
  formula,
  data,
  weights,
  subset,
  na.action,
  main.event,
  competing.event,
  count,
  id,
  timefix,
  tidy_types,
  ...
)

Arguments

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 finegray,

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)

Value

a tibble


oucru-biostats/C306 documentation built on Sept. 1, 2024, 10:04 a.m.