clarify: Simulation-Based Inference for Regression Models

Performs simulation-based inference as an alternative to the delta method for obtaining valid confidence intervals and p-values for regression post-estimation quantities, such as average marginal effects and predictions at representative values. This framework for simulation-based inference is especially useful when the resulting quantity is not normally distributed and the delta method approximation fails. The methodology is described in Greifer, et al. (2025) <doi:10.32614/RJ-2024-015>. 'clarify' is meant to replace some of the functionality of the archived package 'Zelig'; see the vignette "Translating Zelig to clarify" for replicating this functionality.

Version: 0.2.2
Depends: R (≥ 4.1.0)
Imports: ggplot2 (≥ 3.5.0), pbapply (≥ 1.7-4), chk (≥ 0.10.0), rlang (≥ 1.1.6), insight (≥ 1.4.2), marginaleffects (≥ 0.30.0)
Suggests: testthat (≥ 3.0.0), withr, MatchIt (≥ 4.0.0), parallel, knitr, rmarkdown, Amelia, MASS, betareg, survey, estimatr, fixest, logistf, geepack, rms, robustbase, robust, AER, ivreg, mgcv, sandwich, WeightIt (≥ 1.3.2)
Published: 2025-09-19
DOI: 10.32614/CRAN.package.clarify
Author: Noah Greifer ORCID iD [aut, cre], Steven Worthington ORCID iD [aut], Stefano Iacus ORCID iD [aut], Gary King ORCID iD [aut]
Maintainer: Noah Greifer <ngreifer at iq.harvard.edu>
BugReports: https://github.com/iqss/clarify/issues
License: GPL (≥ 3)
URL: https://github.com/iqss/clarify, https://iqss.github.io/clarify/
NeedsCompilation: no
Citation: clarify citation info
Materials: README, NEWS
CRAN checks: clarify results [issues need fixing before 2025-10-03]

Documentation:

Reference manual: clarify.html , clarify.pdf
Vignettes: Translating Zelig to clarify (source)
clarify: Simulation-Based Inference for Regression Models (source)

Downloads:

Package source: clarify_0.2.2.tar.gz
Windows binaries: r-devel: clarify_0.2.1.zip, r-release: clarify_0.2.1.zip, r-oldrel: clarify_0.2.1.zip
macOS binaries: r-release (arm64): clarify_0.2.1.tgz, r-oldrel (arm64): clarify_0.2.1.tgz, r-release (x86_64): clarify_0.2.1.tgz, r-oldrel (x86_64): clarify_0.2.1.tgz
Old sources: clarify archive

Reverse dependencies:

Reverse suggests: marginaleffects

Linking:

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