Package: medrobust Type: Package Title: Robust Causal Mediation Analysis Under Differential Misclassification Version: 0.4.4 Authors@R: c( person("Davood", "Tofighi", email = "dtofighi@gmail.com", role = c("aut", "cre", "cph"), comment = c(ORCID = "0000-0001-8523-7776")) ) Maintainer: Davood Tofighi Description: Provides tools for conducting sensitivity analysis for causal mediation effects when the exposure or mediator is measured with differential misclassification (e.g., recall bias, outcome-dependent measurement error). Unlike existing measurement error correction methods that assume non-differential error or require validation data, 'medrobust' derives partial identification bounds that remain valid without gold-standard measurements. The package implements methods developed in Tofighi (2025) for partial identification bounds for Natural Direct Effects (NDE) and Natural Indirect Effects (NIE), data-driven falsification via testable implications, sensitivity analysis over user-specified ranges of misclassification parameters, diagnostic tools and publication-quality visualizations, bootstrap inference for confidence intervals via percentile and bias-corrected and accelerated (BCa) methods, and synthetic data generation for power analysis and methods research. The package handles both mediator misclassification and exposure misclassification within a unified framework. The partial identification approach builds on Manski (2003, ISBN:978-0387004549); confidence intervals for the partially identified bounds use the construction of Imbens and Manski (2004) . License: MIT + file LICENSE Encoding: UTF-8 Language: en-US LazyData: true Depends: R (>= 4.1.0) Imports: S7 (>= 0.1.0), dplyr (>= 1.1.0), ggplot2 (>= 3.4.0), stats, utils, rlang, parallel Suggests: testthat (>= 3.0.0), knitr, rmarkdown, foreach, doParallel, boot, data.table, nhanesA, mediation (>= 4.5.0), EValue (>= 4.1.0), covr, gridExtra, scales Config/testthat/edition: 3 URL: https://github.com/data-wise/medrobust, https://data-wise.github.io/medrobust/ BugReports: https://github.com/data-wise/medrobust/issues Config/roxygen2/version: 8.1.0 Repository: https://data-wise.r-universe.dev Date/Publication: 2026-09-26 05:53:41 UTC RemoteUrl: https://github.com/Data-Wise/medrobust RemoteRef: main RemoteSha: 61d0afb9f1af996887c0f65b8319ceb29d760af4 NeedsCompilation: no Packaged: 2026-10-26 08:24:20 UTC; root Author: Davood Tofighi [aut, cre, cph] (ORCID: )