Computes reliab on ratings and
valid on (gold, pred) and returns a list with
the two tidy data frames. Use when you want to report agreement and
accuracy together (the C-R-A-F-T R step).
Usage
dual(
ratings,
gold,
pred,
pred_name = NULL,
reliability_method = "auto",
reliability_level = "nominal",
reliability_weights = "equal",
validity_metrics = c("precision", "recall", "f1_macro", "f1_weighted", "accuracy",
"balanced_accuracy", "mcc")
)Arguments
- ratings
Data frame of rater columns for reliability.
- gold
Gold-standard label vector.
- pred
Either a single predicted-label vector, or a named list of predicted-label vectors (one entry per annotator:
list("GPT-5" = ..., "Gemini-3" = ..., "Llama-3.3" = ...)). When a list is supplied, the returnedvaliditytable has one row per annotator with an additionalannotatorcolumn.- pred_name
Optional display name when
predis a single vector. Ignored whenpredis a named list (the list names are used). Downstream renderers (report) use this to label the validity table.- reliability_method, reliability_level, reliability_weights
Passed through to
reliab.- validity_metrics
Passed through to
valid.