pool_cindex | R Documentation |
pool_cindex
Calculates the pooled C-index and Confidence intervals.
pool_cindex(data, conf.level = 0.95, dfcom = NULL)
data |
An object of class 'mistats' ('Multiply Imputed Statistical Analysis'.) or a m x 2 matrix with correlation coefficients and standard errors in the first and second column. For the latter option dfcom has to be provided. |
conf.level |
conf.level Confidence level of the confidence intervals. |
dfcom |
Number of completed-data analysis degrees of freedom.
Default number is taken from function |
Rubin's Rules are used for pooling. The C-index values are log transformed before pooling and finally back transformed.
The pooled c-index value and the confidence intervals.
https://mwheymans.github.io/miceafter/articles/pooling_cindex.html
Martijn Heymans, 2021
with.milist
, cindex
# Logistic Regression imp_dat <- df2milist(lbpmilr, impvar="Impnr") res_stats <- with(data=imp_dat, expr = cindex(glm(Chronic ~ Gender + Radiation, family=binomial))) res <- pool_cindex(res_stats) res # Cox regression library(survival) imp_dat <- df2milist(lbpmicox, impvar="Impnr") res_stats <- with(data=imp_dat, expr = cindex(coxph(Surv(Time, Status) ~ Pain + Radiation))) res <- pool_cindex(res_stats) res
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.