lr_pos: Positive Likelihood Ratio

View source: R/likelihood.R

lr_posR Documentation

Positive Likelihood Ratio

Description

Positive Likelihood Ratio

Usage

lr_pos(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 positive Likelihood Ratio (LR+)

Examples

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

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