Package: clarify 0.2.2

Noah Greifer

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.

Authors:Noah Greifer [aut, cre], Steven Worthington [aut], Stefano Iacus [aut], Gary King [aut]

clarify_0.2.2.tar.gz
clarify_0.2.2.zip(r-4.7)clarify_0.2.2.zip(r-4.6)clarify_0.2.2.zip(r-4.5)
clarify_0.2.2.tgz(r-4.6-any)clarify_0.2.2.tgz(r-4.5-any)
clarify_0.2.2.tar.gz(r-4.7-any)clarify_0.2.2.tar.gz(r-4.6-any)
clarify_0.2.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
clarify/json (API)

# Install 'clarify' in R:
install.packages('clarify', repos = c('https://iqss.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/iqss/clarify/issues

Pkgdown/docs site:https://iqss.github.io

On CRAN:

Conda:

6.73 score 26 stars 48 scripts 4.3k downloads 6 exports 26 dependencies

Last updated from:8b1cefe02a. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK193
source / vignettesOK298
linux-release-x86_64OK210
macos-release-arm64OK165
macos-oldrel-arm64OK162
windows-develOK153
windows-releaseOK149
windows-oldrelOK182
wasm-releaseOK140

Exports:misimsimsim_adrfsim_amesim_applysim_setx

Dependencies:backportscheckmatechkclicpp11data.tablefarverFormulagenericsggplot2gluegtableinsightisobandlabelinglifecyclemarginaleffectspbapplyR6RColorBrewerrlangS7scalesvctrsviridisLitewithr

clarify: Simulation-Based Inference for Regression Models
Introduction | Related software | Using clarify | 1. Fitting the model | 2. Drawing from the coefficient distribution | 3. Computing derived quantities | 4. Summarize and visualize the simulated distribution | Wrappers for sim_apply(): sim_setx(), sim_ame(), and sim_adrf() | sim_setx(): predictions at representative values | sim_ame(): average adjusted predictions and average marginal effects | sim_adrf(): average dose-response functions | Transforming and combining estimates | transform() | cbind() | Using clarify with multiply imputed data | Comparison to other packages | Conclusion | References

Last update: 2025-09-19
Started: 2022-12-21

Translating Zelig to clarify
Introduction | Predictions at representative values | Zelig workflow | clarify workflow | Rare-events logit | Estimating the ATT after matching | Combining results after multiple imputation | References

Last update: 2025-09-18
Started: 2022-12-14