lr_neg: Negative Likelihood Ratio

View source: R/likelihood.R

lr_negR Documentation

Negative Likelihood Ratio

Description

Negative Likelihood Ratio

Usage

lr_neg(sensitivity_estimate, specificity_estimate, digits = 0.1)

Arguments

sensitivity_estimate

The estimated sensitivity or PPA with full precision (do not round this number before passing it to this function).

specificity_estimate

The estimated specificity or NPA with full precision (do not round this number before passing it to this function).

digits

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

Value

A negative Likelihood Ratio (LR-)

Examples

lr_neg(
  sensitivity_estimate = 30/30,
  specificity_estimate = 78/80,
  digits = 0.01
)

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