Skip to content

konfound

Quantify the Robustness of Causal Inferences

v1.0.3 · May 28, 2025 · MIT + file LICENSE

Description

Statistical methods that quantify the conditions necessary to alter inferences, also known as sensitivity analysis, are becoming increasingly important to a variety of quantitative sciences. A series of recent works, including Frank (2000) <doi:10.1177/0049124100029002001> and Frank et al. (2013) <doi:10.3102/0162373713493129> extend previous sensitivity analyses by considering the characteristics of omitted variables or unobserved cases that would change an inference if such variables or cases were observed. These analyses generate statements such as "an omitted variable would have to be correlated at xx with the predictor of interest (e.g., the treatment) and outcome to invalidate an inference of a treatment effect". Or "one would have to replace pp percent of the observed data with nor which the treatment had no effect to invalidate the inference". We implement these recent developments of sensitivity analysis and provide modules to calculate these two robustness indices and generate such statements in R. In particular, the functions konfound(), pkonfound() and mkonfound() allow users to calculate the robustness of inferences for a user's own model, a single published study and multiple studies respectively.

Downloads

CRAN

1.1K

Last 30 days

3439th

2.8K

Last 90 days

11K

Last year

Trend: +22.9% (30d vs prior 30d)

r2u CRAN

9

Last 30 days

23

Last 90 days

103

Last year

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

autoCRAN

9

Last 7 days

17

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

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

package dependencies

Packages required but not available: 'broom.mixed', 'pbkrtest'

Package suggested but not available for checking: ‘mice’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (2)

suggests

Dependency Network

Dependencies Reverse dependencies broom broom.mixed crayon dplyr ggplot2 lavaan purrr rlang tidyr lme4 tibble ggrepel pbkrtest ppcor CEDMr causalfrag konfound

Version History

13 tracked
new 1.0.3 Mar 10, 2026
updated 1.0.3 ← 1.0.2 diff May 27, 2025
updated 1.0.2 ← 1.0.1 diff Oct 16, 2024
updated 1.0.1 ← 0.5.1 diff Oct 7, 2024
updated 0.5.1 ← 0.5.0 diff Apr 11, 2024
updated 0.5.0 ← 0.4.0 diff Mar 17, 2024
updated 0.4.0 ← 0.3.0 diff May 31, 2021
updated 0.3.0 ← 0.2.2 diff Dec 16, 2020
updated 0.2.2 ← 0.2.1 diff Aug 17, 2020
updated 0.2.1 ← 0.1.2 diff Feb 25, 2020
updated 0.1.2 ← 0.1.1 diff Apr 11, 2019
updated 0.1.1 ← 0.1.0 diff Jan 20, 2019
new 0.1.0 Apr 5, 2018