validate_against_gold
Evaluate instrument assessments against human gold-standard codings to compute per-leaf agreement, Cohen's kappa, Gwet's AC1, and sensitivity/specificity, with a disagreement list for adjudication.
Instructions
Compute per-leaf agreement between instrument assessments and human gold-standard codings: raw agreement, Cohen's kappa, Gwet's AC1, and binary (reported-vs-rest) sensitivity/specificity with the human coding as the reference standard, plus a span-keyed disagreement list for adjudication. Agreement is reported PER LEAF; the pooled figure is orientation only. Both arguments are arrays of assessment/coding objects sharing manuscript ids and spec version.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instrument | Yes | ||
| human_codings | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n_papers | No | ||
| per_leaf | No | ||
| spec_version | No | ||
| disagreements | No | ||
| n_disagreements | No | ||
| papers_compared | No | ||
| leaves_with_data | No | ||
| pooled_raw_agreement | No | ||
| pooled_binary_reported | No |