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.
.transform_iptw_to_nnt(iptw_results, nnt_threshold = 0.001)A tibble with NNT estimates and confidence intervals
A tibble with IPTW risk difference results from calc_risk_diff_iptw
Minimum absolute risk difference for meaningful NNT (default: 0.001)
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.