fragility: Assessing and Visualizing Fragility of Clinical Results

A collection of user-friendly functions for assessing fragility of clinical results with binary and survival outcomes. For binary outcomes, the package assesses and visualizes fragility of individual studies (Walsh et al., 2014 <doi:10.1016/j.jclinepi.2013.10.019>; Lin, 2021 <doi:10.1111/jep.13428>), conventional pairwise meta-analyses (Atal et al., 2019 <doi:10.1016/j.jclinepi.2019.03.012>), and network meta-analyses of multiple treatments with binary outcomes (Xing et al., 2020 <doi:10.1016/j.jclinepi.2020.07.003>). The functions for binary outcomes are designed to: 1) calculate the fragility index (i.e., the minimal event status modifications that can alter the significance or non-significance of the original result) and fragility quotient (i.e., fragility index divided by sample size) at a specific significance level; 2) give the cases of event status modifications for altering the result's significance or non-significance and visualize these cases; 3) visualize the trend of statistical significance as event status is modified; 4) efficiently derive fragility indexes and fragility quotients at multiple significance levels, and visualize the relationship between these fragility measures against the significance levels; and 5) calculate fragility indexes and fragility quotients of multiple datasets (e.g., a collection of clinical trials or meta-analyses) and produce plots of their overall distributions. For survival outcomes, the package implements the event status modification method based on the log-rank test described by Xing et al. (2026 <doi:10.1093/aje/kwaf229>). It calculates the fragility index and fragility quotient for two-group studies with right-censored data, modifying event status in one or both groups while preserving follow-up times and group assignments. Results include the sequence of modifications, corresponding p-values, and an S3 print method. The outputs from these functions may inform the robustness of clinical results in terms of statistical significance and aid the interpretation of fragility measures. The usage of this package is illustrated in Lin et al. (2023 <doi:10.1016/j.ajog.2022.08.053>) and detailed in Lin and Chu (2022 <doi:10.1371/journal.pone.0268754>).

Version: 2.0
Depends: R (≥ 3.5.0)
Imports: graphics (≥ 3.5.0), grDevices (≥ 3.5.0), meta (≥ 8.0-1), metafor (≥ 2.0-0), netmeta (≥ 1.0-0), plotrix (≥ 3.7-5), stats (≥ 3.5.0), survival (≥ 3.8-3)
Published: 2026-09-22
DOI: 10.32614/CRAN.package.fragility
Author: Lifeng Lin ORCID iD [aut, cre], Xing Xing ORCID iD [aut], Jiayi Tong ORCID iD [aut], Haitao Chu ORCID iD [aut]
Maintainer: Lifeng Lin <lifenglin at arizona.edu>
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
NeedsCompilation: no
CRAN checks: fragility results

Documentation:

Reference manual: fragility.html , fragility.pdf

Downloads:

Package source: fragility_2.0.tar.gz
Windows binaries: r-devel: fragility_1.6.1.zip, r-release: fragility_1.6.1.zip, r-oldrel: fragility_1.6.1.zip
macOS binaries: r-release (arm64): fragility_1.6.1.tgz, r-oldrel (arm64): fragility_1.6.1.tgz, r-release (x86_64): fragility_2.0.tgz, r-oldrel (x86_64): fragility_2.0.tgz
Old sources: fragility archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=fragility to link to this page.