specificity_fraction: Calculate an agreement proportion for Specificity from a...

View source: R/percent_agreement.R

specificity_fractionR Documentation

Calculate an agreement proportion for Specificity from a Fraction

Description

This is a wrapper around agreement() that permits use of a numerator and denominator rather than true calls and false calls.

Usage

specificity_fraction(
  numerator,
  denominator,
  digits = 0.1,
  interval = 0.95,
  ...
)

Arguments

numerator

The numerator. The number of true negative calls.

denominator

The total number of calls.

digits

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

interval

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

...

Parameters passed to agreement().

Value

A formatted agreement proportion.

Examples

specificity_fraction(100, 100)
specificity_fraction(100, 100, 0.01, 0.99)

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