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: |
|
---|---|
Returns: |
arr – Contingency table that contains counts of category level with rater1 in rows and rater2 in columns. |
Return type: |
nd_array, (n_cat, n_cat) |
no NaN handling, delete rows with missing values
This works also for more than two raters. In that case the dimension of the resulting contingency table is the same as the number of raters instead of 2-dimensional.
© 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.to_table.html