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:Sebastian Kranz based on code by Graham Elliott, Nikolay Kudrin and Kaspar Wuethrich

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

On CRAN: no

Conda:

3.00 score 2 stars 14 exports 52 dependencies

Last updated 2 years agofrom:0a5f40587e (on main). Checks:1 OK, 8 WARNING. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKMar 04 2025
R-4.5-winWARNINGMar 04 2025
R-4.5-macWARNINGMar 04 2025
R-4.5-linuxWARNINGMar 04 2025
R-4.4-winWARNINGMar 04 2025
R-4.4-macWARNINGMar 04 2025
R-4.4-linuxWARNINGMar 04 2025
R-4.3-winWARNINGMar 04 2025
R-4.3-macWARNINGMar 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

author2019mypaper

Rendered fromphack.Rnwusingutils::Sweaveon Mar 04 2025.

Last update: 2022-09-26
Started: 2022-09-26

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.