agreement: Calculate an agreement proportion

View source: R/percent_agreement.R

agreementR Documentation

Calculate an agreement proportion

Description

Calculate an agreement proportion

Usage

agreement(
  true_calls,
  false_calls,
  digits = 0.1,
  interval = 0.95,
  format_big = FALSE
)

Arguments

true_calls

The number of correct calls (true positives or true negatives).

false_calls

The number of incorrect calls (false positives or false negatives).

digits

The number of digits to round to. Defaults to 0.1.

interval

The confidence interval to calculate. Defaults to 0.95 for 95%.

format_big

A boolean indicating whether or not to format large numbers in string outputs to include commas as a big mark and to avoid scientific notation. Defaults to FALSE.

Value

A formatted agreement proportion.

Examples

agreement(100, 0)
agreement(100, 0, 0.01, 0.99)

bjoleary/dxr documentation built on Dec. 5, 2023, 8:33 p.m.