convert raw data with shape (subject, rater) to (subject, cat_counts)
brings data into correct format for fleiss_kappa
bincount will raise exception if data cannot be converted to integer.
Parameters : | data : array_like, 2-Dim
n_cat : None or int
|
---|---|
Returns : | arr : nd_array, (n_rows, n_cat)
|