Anvil.Agreement.Cohen (Anvil v0.1.1)
View SourceCohen's kappa for measuring agreement between two raters.
κ = (p_o - p_e) / (1 - p_e)
where:
- p_o = observed agreement
- p_e = expected agreement by chance
Summary
Functions
Computes Cohen's kappa for two raters.
Functions
@spec compute( [Anvil.Label.t()], keyword() ) :: {:ok, float()} | {:error, term()}
Computes Cohen's kappa for two raters.
Options
:field- Field name to compute agreement for (default: first field in values)