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

935

Last 30 days

3941st

2.8K

Last 90 days

10.5K

Last year

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

CRAN Check Status

14 OK
Show all 14 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-macos-arm64 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 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

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

Version History

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