crrFormula: Competing Risk Regression with Formula

View source: R/crrFormula.R

crrFormulaR Documentation

Competing Risk Regression with Formula

Description

Competing Risk Regression with Formula

Usage

crrFormula(x, data, ...)

Arguments

x

formula time+status~explanatory variables

data

data a data.frame

...

Further arguments to be passed to crr

Value

An object of class "tidycrr" which is described in crr

Examples

data(melanoma,package="boot")
melanoma$status_crr=ifelse(melanoma$status==1,1,ifelse(melanoma$status==2,0,2))
crrFormula(time+status_crr~age+sex+thickness+ulcer,data=melanoma)

autoReg documentation built on Nov. 14, 2023, 9:07 a.m.