Package: phack 0.1.0
phack: Detecting p-Hacking using Elliot et al. (2022)
Implements the tests from Elliot et al. (2022) for detecting p-Hacking. The package is essentially a simple wrapper to the code provided in the code and data supplement of the article, with some cosmetical changes. The original code can be found in the code and data supplement of the article. s References Elliott, G., Kudrin, N., & Wüthrich, K. (2022). Detecting p‐Hacking. Econometrica, 90(2), 887-906.
Authors:
phack_0.1.0.tar.gz
phack_0.1.0.zip(r-4.5)phack_0.1.0.zip(r-4.4)phack_0.1.0.zip(r-4.3)
phack_0.1.0.tgz(r-4.5-any)phack_0.1.0.tgz(r-4.4-any)phack_0.1.0.tgz(r-4.3-any)
phack_0.1.0.tar.gz(r-4.5-noble)phack_0.1.0.tar.gz(r-4.4-noble)
phack_0.1.0.tgz(r-4.4-emscripten)phack_0.1.0.tgz(r-4.3-emscripten)
phack.pdf |phack.html✨
phack/json (API)
# Install 'phack' in R: |
install.packages('phack', repos = c('https://skranz.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/skranz/phack/issues0 issues
Last updated 2 years agofrom:0a5f40587e (on main). Checks:1 OK, 8 WARNING. Indexed: yes.
Target | Result | Latest binary |
---|---|---|
Doc / Vignettes | OK | Mar 04 2025 |
R-4.5-win | WARNING | Mar 04 2025 |
R-4.5-mac | WARNING | Mar 04 2025 |
R-4.5-linux | WARNING | Mar 04 2025 |
R-4.4-win | WARNING | Mar 04 2025 |
R-4.4-mac | WARNING | Mar 04 2025 |
R-4.4-linux | WARNING | Mar 04 2025 |
R-4.3-win | WARNING | Mar 04 2025 |
R-4.3-mac | WARNING | Mar 04 2025 |
Exports:Bound0Bound1Bound2CoxShicv2get.phack.F_LCMsuplambda2phack_test_binomialphack_test_cox_shiphack_test_discontinuityphack_test_fisherphack_test_lcmSimBBwarn_p_rounding
Dependencies:abindclicolorspacedeldirfansifarverfdrtoolgdataggplot2gluegoftestgtablegtoolsisobandlabelinglatticelifecyclelpdensitymagrittrMASSMatrixmgcvmunsellNlcOptimnlmepillarpkgconfigpolyclippracmaquadprogR6RColorBrewerrddensityrlangrpartscalesspatstatspatstat.dataspatstat.explorespatstat.geomspatstat.linnetspatstat.modelspatstat.randomspatstat.sparsespatstat.univarspatstat.utilstensortibbleutf8vctrsviridisLitewithr
Citation
To cite package ‘phack’ in publications use:
Elliott SKbocbG, Kudrin N, Wuethrich K (2025). phack: Detecting p-Hacking using Elliot et al. (2022). R package version 0.1.0, https://github.com/skranz/phack.
ATTENTION: This citation information has been auto-generated from the package DESCRIPTION file and may need manual editing, see ‘help("citation")’.
Corresponding BibTeX entry:
@Manual{, title = {phack: Detecting p-Hacking using Elliot et al. (2022)}, author = {Sebastian Kranz based on code by Graham Elliott and Nikolay Kudrin and Kaspar Wuethrich}, year = {2025}, note = {R package version 0.1.0}, url = {https://github.com/skranz/phack}, }
Readme and manuals
This R package implements the tests from Elliot et al. (2022) for detecting p-Hacking.
For documentation and examples, take a look at the vignette here:
https://github.com/skranz/phack/blob/main/documentation/vignette_phack.pdf
The package is essentially a simple wrapper to the code provided in the code and data supplement of the article, with some cosmetical changes. The original code can be found in the code and data supplement of the article.
You can install the package from my r-universe repository by running the following code:
options(repos = c(
skranz = 'https://skranz.r-universe.dev',
CRAN = 'https://cloud.r-project.org'))
install.packages('phack')
Reference:
Elliott, G., Kudrin, N., & Wüthrich, K. (2022). Detecting p‐Hacking. Econometrica, 90(2), 887-906.
Help Manual
Help page | Topics |
---|---|
Binomial test for p-hacking | phack_test_binomial |
Cox-Shi histogram test and more general test for K-monotonicity and bounds on [p_min, p_max] interval | phack_test_cox_shi |
Discontinuity test | phack_test_discontinuity |
Fisher's test | phack_test_fisher |
LCM test on [p_min, p_max] | phack_test_lcm |
Simulate Brownian Bridge (BB) and ||LCM(BB)-BB|| | SimBB |