cindex: Calculates the c-index and standard error

View source: R/cindex.R

cindexR Documentation

Calculates the c-index and standard error

Description

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.

Usage

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(s)

Martijn Heymans, 2021

See Also

with.milist, pool_cindex

Examples


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


miceafter documentation built on Oct. 2, 2022, 5:08 p.m.