I'm sorry if this question sounds trivial or is a duplicate, but I could't find a definition formula for the $c$-index. There are numerous questions and answers about it, but all I have skimmed assume that the reader knows how to compute it or has the software for that purpose.
I've read that for binary outcome it is equivalent to the area under the ROC curve. But I have an ordinal model, with more than two levels.
So, can someone please post, in a simple and concise answer, the formula defining the $c$-index, as used in ordinal regression with uncensored data?
P.S. I would also appreciate if someone could point me to a Python library which can compute the index and which works well with statsmodels.
resid_probreturns a vector of values, one per observation. The $c$-index is a single number. – Igor F. Dec 22 '22 at 15:10