crrFormula {autoReg}R 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)

[Package autoReg version 0.3.3 Index]