Learn R Programming

miceafter (version 0.5.0)

cindex: 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)

Value

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

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.

Author

Martijn Heymans, 2021

See Also

with.milist, pool_cindex

Examples

Run this code

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

Run the code above in your browser using DataLab