cindex Calculates the c-index and standard error for logistic and Cox regression models and the degrees of freedom to be further used in function with.milist.

cindex(formula, data)

Arguments

formula

A formula object to specify the model as normally used by glm or coxph.

data

An object of class milist, created by df2milist, list2milist or mids2milist.

Value

The c-index, related standard error and complete data degrees of freedom (dfcom) as n-1.

Author

Martijn Heymans, 2021

Examples


 imp_dat <- df2milist(lbpmilr, impvar="Impnr")
 ra <- with(data=imp_dat,
 expr = cindex(glm(Chronic ~ Gender + Radiation, family=binomial)))