Package: phacking 0.2.1

Peter Solymos

phacking: Sensitivity Analysis for p-Hacking in Meta-Analyses

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).

Authors:Peter Solymos [cre, ctb], Maya Mathur [aut], Mika Braginsky [aut]

phacking_0.2.1.tar.gz
phacking_0.2.1.zip(r-4.7-x86_64)phacking_0.2.1.zip(r-4.7-arm64)phacking_0.2.1.zip(r-4.6-x86_64)phacking_0.2.1.zip(r-4.6-arm64)
phacking_0.2.1.tar.gz(r-4.7-arm64)phacking_0.2.1.tar.gz(r-4.7-x86_64)phacking_0.2.1.tar.gz(r-4.6-arm64)phacking_0.2.1.tar.gz(r-4.6-x86_64)
phacking_0.2.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
phacking/json (API)

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

Bug tracker:https://github.com/mathurlabstanford/phacking/issues

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

Uses libs:
  • onetbb– Parallelism library for C++
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

Conda:

onetbbcpp

2.18 score 1 stars 1 packages 297 downloads 4 exports 63 dependencies

Last updated from:bd4474f66b. Checks:10 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK258
linux-devel-x86_64OK239
source / vignettesOK361
linux-release-arm64OK282
linux-release-x86_64OK335
windows-devel-arm64OK321
windows-devel-x86_64OK357
windows-release-arm64OK345
windows-release-x86_64OK320
wasm-releaseOK159

Exports:phacking_metartma_cdfrtma_qqplotz_density

Dependencies:abindbackportsBHcallrcheckmateclicpp11descdigestdistributionaldplyrfarvergenericsggplot2gluegridExtragtableinlineisobandlabelinglatticelifecycleloomagrittrmathjaxrMatrixmatrixStatsmetabiasmetadatmetafornlmenumDerivotelpbapplypillarpkgbuildpkgconfigposteriorprocessxpspurrrQuickJSRR6rbibutilsRColorBrewerRcppRcppEigenRcppParallelRdpackrlangrstanrstantoolsS7scalesStanHeaderstensorAtibbletidyselecttruncnormutf8vctrsviridisLitewithr