cindex function

Calculates the c-index and standard error

Calculates the c-index and standard error

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.

Returns

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

Examples

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

See Also

with.milist, pool_cindex

Author(s)

Martijn Heymans, 2021

  • Maintainer: Martijn Heymans
  • License: GPL (>= 2)
  • Last published: 2022-10-02