Skip to content

phacking

Sensitivity Analysis for p-Hacking in Meta-Analyses

v0.2.1 · Jul 17, 2023 · MIT + file LICENSE

Description

Fits right-truncated meta-analysis (RTMA), a bias correction for the joint effects of p-hacking (i.e., manipulation of results within studies to obtain significant, positive estimates) and traditional publication bias (i.e., the selective publication of studies with significant, positive results) in meta-analyses [see Mathur MB (2022). "Sensitivity analysis for p-hacking in meta-analyses." <doi:10.31219/osf.io/ezjsx>.]. Unlike publication bias alone, p-hacking that favors significant, positive results (termed "affirmative") can distort the distribution of affirmative results. To bias-correct results from affirmative studies would require strong assumptions on the exact nature of p-hacking. In contrast, joint p-hacking and publication bias do not distort the distribution of published nonaffirmative results when there is stringent p-hacking (e.g., investigators who hack always eventually obtain an affirmative result) or when there is stringent publication bias (e.g., nonaffirmative results from hacked studies are never published). This means that any published nonaffirmative results are from unhacked studies. Under these assumptions, RTMA involves analyzing only the published nonaffirmative results to essentially impute the full underlying distribution of all results prior to selection due to p-hacking and/or publication bias. The package also provides diagnostic plots described in Mathur (2022).

Downloads

CRAN

290

Last 30 days

13752nd

835

Last 90 days

3.1K

Last year

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

r2u CRAN

40

Last 30 days

119

Last 90 days

414

Last year

Trend: -20% (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 12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 25, 2026
NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 22, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is 40.5Mb
  sub-directories of 1Mb or more:
    libs  40.2Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 41.6Mb
  sub-directories of 1Mb or more:
    libs  41.3Mb
NOTE r-oldrel-windows-x86_64

for GNU extensions in Makefiles

GNU make is a SystemRequirements.
ERROR 10 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 18, 2026
ERROR r-devel-windows-x86_64

whether package can be installed

Installation failed.
See 'd:/Rcompile/CRANpkg/local/4.6/phacking.Rcheck/00install.out' for details.
NOTE r-oldrel-macos-arm64

installed package size

installed size is 40.5Mb
  sub-directories of 1Mb or more:
    libs  40.2Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 41.6Mb
  sub-directories of 1Mb or more:
    libs  41.3Mb
NOTE r-oldrel-windows-x86_64

for GNU extensions in Makefiles

GNU make is a SystemRequirements.
NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is 40.5Mb
  sub-directories of 1Mb or more:
    libs  40.2Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 41.6Mb
  sub-directories of 1Mb or more:
    libs  41.3Mb
NOTE r-oldrel-windows-x86_64

for GNU extensions in Makefiles

GNU make is a SystemRequirements.

Reverse Dependencies (1)

suggests

Dependency Network

Dependencies Reverse dependencies dplyr ggplot2 metabias metafor purrr rlang stats4 truncnorm Rcpp RcppParallel (>= 5.0.1) Rdpack rstan rstantools multibiasmeta phacking

Version History

4 tracked
new 0.2.1 Mar 10, 2026
updated 0.2.1 ← 0.1.0 diff Jul 16, 2023
updated 0.1.0 ← 0.0.1 diff Jan 19, 2023
new 0.0.1 Jun 20, 2022