ard_survival_survdiff {cardx}R Documentation

ARD for Difference in Survival

Description

Analysis results data for comparison of survival using survival::survdiff().

Usage

ard_survival_survdiff(formula, data, rho = 0, ...)

Arguments

formula

(formula)
a formula

data

(data.frame)
a data frame

rho

(⁠scalar numeric⁠)
numeric scalar passed to survival::survdiff(rho). Default is rho=0.

...

additional arguments passed to survival::survdiff()

Value

an ARD data frame of class 'card'

Examples


library(survival)
library(ggsurvfit)

ard_survival_survdiff(Surv_CNSR(AVAL, CNSR) ~ TRTA, data = cards::ADTTE)


[Package cardx version 0.2.0 Index]