Skip to contents

Solves the CI-width equation for a target LR: given expected Se and Sp, the LR+ (or LR-) is determined; n per group is found such that the log-scale CI half-width does not exceed ln(target / LR_expected).

Usage

calculate_likelihood_ratio_v2(
  sens,
  spec,
  prevalence,
  alpha,
  target_lr,
  lr_type
)