Learn R Programming

riskdiff (version 0.3.0)

.transform_iptw_to_nnt: Transform IPTW Risk Difference Results to Number Needed to Treat

Description

Converts IPTW risk difference estimates and confidence intervals to causal Number Needed to Treat using the reciprocal transformation with appropriate handling of boundary cases and effective sample size considerations.

Usage

.transform_iptw_to_nnt(iptw_results, nnt_threshold = 0.001)

Value

A tibble with NNT estimates and confidence intervals

Arguments

iptw_results

A tibble with IPTW risk difference results from calc_risk_diff_iptw

nnt_threshold

Minimum absolute risk difference for meaningful NNT (default: 0.001)

References

Laupacis A, Sackett DL, Roberts RS (1988). "An assessment of clinically useful measures of the consequences of treatment." New England Journal of Medicine, 318(26), 1728-1733. doi:10.1056/NEJM198806303182605

Hernán MA, Robins JM (2020). "Causal Inference: What If." Chapman & Hall/CRC.