statsmodels.stats.inter_rater.aggregate_raters(data, n_cat=None)
[source]
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: |
|
---|---|
Returns: |
arr – Contains counts of raters that assigned a category level to individuals. Subjects are in rows, category levels in columns. |
Return type: |
nd_array, (n_rows, n_cat) |
© 2009–2012 Statsmodels Developers
© 2006–2008 Scipy Developers
© 2006 Jonathan E. Taylor
Licensed under the 3-clause BSD License.
http://www.statsmodels.org/stable/generated/statsmodels.stats.inter_rater.aggregate_raters.html