Skip to content

clarify

Simulation-Based Inference for Regression Models

v0.2.3 · Jun 8, 2026 · GPL (>= 3)

Description

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.

Downloads

3.8K

Last 30 days

2099th

11.9K

Last 90 days

45.1K

Last year

Trend: -15.3% (30d vs prior 30d)

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

re-building of vignette outputs

Error(s) in re-building vignettes:
  ...
--- re-building ‘Zelig.Rmd’ using rmarkdown_notangle

Quitting from Zelig.Rmd:152-158 [unnamed-chunk-17]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Err
...[truncated]...
stf'
--- failed re-building ‘Zelig.Rmd’

--- re-building ‘clarify.Rmd’ using rmarkdown_notangle
--- finished re-building ‘clarify.Rmd’

SUMMARY: processing the following file failed:
  ‘Zelig.Rmd’

Error: Vignette re-building failed.
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 10, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 9, 2026
ERROR r-devel-linux-x86_64-debian-gcc

re-building of vignette outputs

Error(s) in re-building vignettes:
  ...
--- re-building ‘Zelig.Rmd’ using rmarkdown_notangle

Quitting from Zelig.Rmd:39-41 [unnamed-chunk-3]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error 
...[truncated]...
gnette 'clarify.Rmd' failed with diagnostics:
there is no package called 'MatchIt'
--- failed re-building ‘clarify.Rmd’

SUMMARY: processing the following files failed:
  ‘Zelig.Rmd’ ‘clarify.Rmd’

Error: Vignette re-building failed.
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (1)

suggests

Dependency Network

Dependencies Reverse dependencies arg ggplot2 pbapply cli rlang insight marginaleffects marginaleffects clarify

Version History

9 tracked
updated 0.2.3 ← 0.2.2 diff Jun 8, 2026
new 0.2.2 Mar 10, 2026
updated 0.2.2 ← 0.2.1 diff Sep 19, 2025
updated 0.2.1 ← 0.2.0 diff May 29, 2024
updated 0.2.0 ← 0.1.3 diff Sep 20, 2023
updated 0.1.3 ← 0.1.2 diff May 3, 2023
updated 0.1.2 ← 0.1.1 diff Feb 21, 2023
updated 0.1.1 ← 0.1.0 diff Feb 2, 2023
new 0.1.0 Jan 24, 2023