gg_ajsurvplot: Plot the Aalen-Johansen curve with ggplot for competing risks

View source: R/gg_ajsurvplot.R

gg_ajsurvplotR Documentation

Plot the Aalen-Johansen curve with ggplot for competing risks

Description

Extend ggsurvplot functionality to plot competing risk curve

Usage

gg_ajsurvplot(
  formula,
  data,
  weights,
  subset,
  na.action,
  etype,
  count,
  id,
  timefix,
  ...
)

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, etype, count, id, timefix

parameter passed to finegray model. See finegray,

...

optional parameters passed to ggsurvplot.


oucru-biostats/C306 documentation built on July 16, 2024, 2:33 p.m.