getDefaultDiagnosticThresholds: Get default diagnostic thresholds

View source: R/Diagnostics.R

getDefaultDiagnosticThresholdsR Documentation

Get default diagnostic thresholds

Description

Returns default thresholds for diagnostic tests following SCCS standards. Version 2.1.0+ uses revised diagnostics that align with SelfControlledCaseSeries package.

Usage

getDefaultDiagnosticThresholds()

Details

Thresholds:

  • mdrrMaxAcceptable - Maximum acceptable MDRR (default: 10.0). Higher values indicate low power.

  • maxPreExposureProportion - Maximum proportion of persons with pre-exposure outcomes (default: 0.05)

  • preExposurePThreshold - Significance threshold for pre-exposure gain test (default: 0.05)

  • maxEventDependentCensoring - Maximum proportion censored within 30 days of outcome (default: 0.25)

  • minEventsPerWindow - Minimum events required in each window (default: 3)

  • easeMaxAcceptable - Maximum acceptable EASE (default: 0.25). Requires negative controls.

Value

A list of diagnostic thresholds

Examples


if (interactive()) {
# Get default thresholds
   thresholds <- getDefaultDiagnosticThresholds()

   # Modify specific thresholds
   customThresholds <- getDefaultDiagnosticThresholds()
   customThresholds$mdrrMaxAcceptable <- 5.0
}


SelfControlledCohort documentation built on June 17, 2026, 5:07 p.m.