statsmodels.stats.inter_rater.to_table
statsmodels.stats.inter_rater.to_table(data, bins=None) [source]
convert raw data with shape (subject, rater) to (rater1, rater2) brings data into correct format for cohens_kappa Parameters:
data : array_like, 2-Dim data containing category assignment with subjects in rows and raters in columns. bins : None, int or tuple of array_like If None, then the data is converted to integer categories, 0,1,2,...,n_cat-1. Because of the relabeling only categor