Averages the marginal positive rates of the two raters.
Usage
grass_prevalence(
data,
format = c("wide", "matrix", "long", "paired"),
positive = NULL,
...
)Arguments
- data
Input data. Form depends on
format:"matrix"– a 2x2 integer count matrix withR1rows,R2columns."wide"– a data.frame with exactly two rater columns (or passrater_cols = c("r1", "r2")if the data contains extra columns)."long"– a data.frame withsubject,rater, andratingcolumns (names configurable viasubject =,rater =,rating =). Must contain exactly two distinct raters."paired"– a list of two equal-length rating vectors, a 2-column matrix, or a 2-column data.frame.
- format
One of
"matrix","wide","long","paired".- positive
Optional character string naming the level to treat as the positive (=1) class. Defaults to
"yes"if present among levels, then"1"/"true"/"positive"/"case", then first-encountered.- ...
Format-specific arguments:
rater_colsfor"wide";subject,rater,ratingfor"long".