agreement_categorical()¶
- audpsychometric.agreement_categorical(ratings, *, axis=1)[source]¶
Confidence score for categorical ratings.
The agreement for categorical data is given by the fraction of raters per item with the rating being equal to the mode given by
audpsychometric.mode()
.None
andnan
values are ignored per item.- Parameters
- Return type
- Returns
categorical agreement score(s)
Examples
>>> agreement_categorical([0, 1]) 0.5 >>> agreement_categorical(["a", "b"]) 0.5 >>> agreement_categorical([1, 1, np.nan]) 1.0