{
  "_id": "6a3ba68a5cdecea1d6829021",
  "Package": "phacking",
  "Title": "Sensitivity Analysis for p-Hacking in Meta-Analyses",
  "Version": "0.2.1",
  "Authors@R": "c(\nperson(\"Peter\", \"Solymos\", email = \"peter@analythium.io\", role = c(\"cre\", \"ctb\"), comment = c(ORCID = \"0000-0001-7337-1740\")),\nperson(\"Maya\", \"Mathur\", email = \"mmathur@stanford.edu\", role = c(\"aut\")),\nperson(\"Mika\", \"Braginsky\", email = \"mika.br@gmail.com\", role = c(\"aut\"))\n)",
  "Description": "Fits right-truncated meta-analysis (RTMA), a bias\ncorrection for the joint effects of p-hacking (i.e.,\nmanipulation of results within studies to obtain significant,\npositive estimates) and traditional publication bias (i.e., the\nselective publication of studies with significant, positive\nresults) in meta-analyses [see Mathur MB (2022). \"Sensitivity\nanalysis for p-hacking in meta-analyses.\"\n<doi:10.31219/osf.io/ezjsx>.]. Unlike publication bias alone,\np-hacking that favors significant, positive results (termed\n\"affirmative\") can distort the distribution of affirmative\nresults. To bias-correct results from affirmative studies would\nrequire strong assumptions on the exact nature of p-hacking. In\ncontrast, joint p-hacking and publication bias do not distort\nthe distribution of published nonaffirmative results when there\nis stringent p-hacking (e.g., investigators who hack always\neventually obtain an affirmative result) or when there is\nstringent publication bias (e.g., nonaffirmative results from\nhacked studies are never published). This means that any\npublished nonaffirmative results are from unhacked studies.\nUnder these assumptions, RTMA involves analyzing only the\npublished nonaffirmative results to essentially impute the full\nunderlying distribution of all results prior to selection due\nto p-hacking and/or publication bias. The package also provides\ndiagnostic plots described in Mathur (2022).",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/mathurlabstanford/phacking,\nhttps://mathurlabstanford.github.io/phacking/",
  "BugReports": "https://github.com/mathurlabstanford/phacking/issues",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.2.3",
  "RdMacros": "Rdpack",
  "Biarch": "true",
  "SystemRequirements": "GNU make",
  "LazyData": "true",
  "Config/testthat/edition": "3",
  "Config/pak/sysreqs": "make",
  "Repository": "https://mathurlabstanford.r-universe.dev",
  "Date/Publication": "2023-07-15 21:14:15 UTC",
  "RemoteUrl": "https://github.com/mathurlabstanford/phacking",
  "RemoteRef": "HEAD",
  "RemoteSha": "c5cc0ed2438806153e230662ee20c194fb48bec5",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-06-24 09:27:56 UTC",
    "User": "root"
  },
  "Author": "Peter Solymos [cre, ctb] (ORCID:\n<https://orcid.org/0000-0001-7337-1740>),\nMaya Mathur [aut],\nMika Braginsky [aut]",
  "Maintainer": "Peter Solymos <peter@analythium.io>",
  "MD5sum": "f7d041baf5b0c58501fb66901fef89f2",
  "_user": "mathurlabstanford",
  "_type": "src",
  "_file": "phacking_0.2.1.tar.gz",
  "_fileid": "eceabb1f804735e53f222136c5ca98db931b9cf148b7e50a856f7e48f311422e",
  "_filesize": 145254,
  "_sha256": "eceabb1f804735e53f222136c5ca98db931b9cf148b7e50a856f7e48f311422e",
  "_created": "2026-06-24T09:27:56.000Z",
  "_published": "2026-06-24T09:42:34.166Z",
  "_distro": "resolute",
  "_jobs": [
    {
      "job": 83161691319,
      "time": 282,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7845611808"
    },
    {
      "job": 83161691300,
      "time": 343,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7845632512"
    },
    {
      "job": 83161691338,
      "time": 272,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7845608440"
    },
    {
      "job": 83161691349,
      "time": 291,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7845613916"
    },
    {
      "job": 83161691321,
      "time": 228,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7845590270"
    },
    {
      "job": 83161691328,
      "time": 581,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7845724833"
    },
    {
      "job": 83161691343,
      "time": 255,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7845600003"
    },
    {
      "job": 83161691352,
      "time": 795,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7845805100"
    },
    {
      "job": 83160828041,
      "time": 279,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7845497594"
    },
    {
      "job": 83161691311,
      "time": 195,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 83161691320,
      "time": 350,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7845636620"
    },
    {
      "job": 83161691326,
      "time": 353,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7845638342"
    },
    {
      "job": 83161691323,
      "time": 327,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7845627346"
    }
  ],
  "_buildurl": "https://github.com/r-universe/mathurlabstanford/actions/runs/28088633541",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/mathurlabstanford/phacking",
  "_commit": {
    "id": "c5cc0ed2438806153e230662ee20c194fb48bec5",
    "author": "Peter Solymos <psolymos@gmail.com>",
    "committer": "Peter Solymos <psolymos@gmail.com>",
    "message": "Update Rd\n\nSigned-off-by: Peter Solymos <psolymos@gmail.com>\n",
    "time": 1689455655
  },
  "_maintainer": {
    "name": "Peter Solymos",
    "email": "peter@analythium.io",
    "login": "psolymos",
    "linkedin": "in/peter-solymos",
    "twitter": "@psolymos",
    "description": "Tech-bio-nerd",
    "uuid": 831636,
    "orcid": "0000-0001-7337-1740"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "BH",
      "version": ">= 1.66.0",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "version": ">= 0.12.0",
      "role": "LinkingTo"
    },
    {
      "package": "RcppEigen",
      "version": ">= 0.3.3.3.0",
      "role": "LinkingTo"
    },
    {
      "package": "RcppParallel",
      "version": ">= 5.0.1",
      "role": "LinkingTo"
    },
    {
      "package": "rstan",
      "version": ">= 2.18.1",
      "role": "LinkingTo"
    },
    {
      "package": "StanHeaders",
      "version": ">= 2.18.0",
      "role": "LinkingTo"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "metabias",
      "role": "Imports"
    },
    {
      "package": "metafor",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "stats4",
      "role": "Imports"
    },
    {
      "package": "truncnorm",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "version": ">= 0.12.0",
      "role": "Imports"
    },
    {
      "package": "RcppParallel",
      "version": ">= 5.0.1",
      "role": "Imports"
    },
    {
      "package": "Rdpack",
      "role": "Imports"
    },
    {
      "package": "rstan",
      "version": ">= 2.18.1",
      "role": "Imports"
    },
    {
      "package": "rstantools",
      "version": ">= 2.2.0",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "mathurlabstanford",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 1,
  "_contributors": [
    {
      "user": "mikabr",
      "count": 56,
      "uuid": 1414971
    },
    {
      "user": "psolymos",
      "count": 23,
      "uuid": 831636
    },
    {
      "user": "mayamathur",
      "count": 22,
      "uuid": 8933150
    }
  ],
  "_userbio": {
    "uuid": 124089885,
    "type": "organization",
    "name": "Mathur Lab at Stanford",
    "followers": 0
  },
  "_downloads": {
    "count": 263,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/phacking"
  },
  "_devurl": "https://github.com/mathurlabstanford/phacking",
  "_pkgdown": "https://mathurlabstanford.github.io/phacking/",
  "_searchresults": 10,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/phacking.html",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/mathurlabstanford/phacking",
  "_realowner": "mathurlabstanford",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.0.1",
      "date": "2022-06-21"
    },
    {
      "version": "0.1.0",
      "date": "2023-01-20"
    },
    {
      "version": "0.2.1",
      "date": "2023-07-17"
    }
  ],
  "_exports": [
    "phacking_meta",
    "rtma_cdf",
    "rtma_qqplot",
    "z_density"
  ],
  "_datasets": [
    {
      "name": "money_priming_meta",
      "title": "Meta-analysis of money priming studies",
      "object": "money_priming_meta",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "study",
        "yi",
        "vi",
        "zi",
        "preregistered"
      ],
      "rows": 287,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "money_priming_meta",
      "title": "Meta-analysis of money priming studies",
      "topics": [
        "money_priming_meta"
      ]
    },
    {
      "page": "phacking_meta",
      "title": "Right-truncated meta-analysis",
      "topics": [
        "phacking_meta"
      ]
    },
    {
      "page": "rtma_cdf",
      "title": "Compute theoretical and empirical CDFs for a right-truncated meta-analysis",
      "topics": [
        "rtma_cdf"
      ]
    },
    {
      "page": "rtma_qqplot",
      "title": "Diagnostic quantile-quantile plot for a right-truncated meta-analysis",
      "topics": [
        "rtma_qqplot"
      ]
    },
    {
      "page": "z_density",
      "title": "Z-score density plot",
      "topics": [
        "z_density"
      ]
    }
  ],
  "_readme": "https://github.com/mathurlabstanford/phacking/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "backports",
    "BH",
    "callr",
    "checkmate",
    "cli",
    "cpp11",
    "desc",
    "digest",
    "distributional",
    "dplyr",
    "farver",
    "generics",
    "ggplot2",
    "glue",
    "gridExtra",
    "gtable",
    "inline",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "loo",
    "magrittr",
    "mathjaxr",
    "Matrix",
    "matrixStats",
    "metabias",
    "metadat",
    "metafor",
    "nlme",
    "numDeriv",
    "otel",
    "pbapply",
    "pillar",
    "pkgbuild",
    "pkgconfig",
    "posterior",
    "processx",
    "ps",
    "purrr",
    "QuickJSR",
    "R6",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppEigen",
    "RcppParallel",
    "Rdpack",
    "rlang",
    "rstan",
    "rstantools",
    "S7",
    "scales",
    "StanHeaders",
    "tensorA",
    "tibble",
    "tidyselect",
    "truncnorm",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_score": 3,
  "_indexed": true,
  "_nocasepkg": "phacking",
  "_universes": [
    "mathurlabstanford",
    "psolymos"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.1",
      "date": "2026-06-24T09:31:29.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "c5cc0ed2438806153e230662ee20c194fb48bec5",
      "fileid": "da06f92973a033549b3ec9f48c8cc5ae1416cb99ebee3fb13c5cac376da367d7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mathurlabstanford/actions/runs/28088633541"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.1",
      "date": "2026-06-24T09:31:27.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "c5cc0ed2438806153e230662ee20c194fb48bec5",
      "fileid": "3a9c4b569735d3a8783e01db261f97b89a78a520057e2964af3a0bf77e9a766c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mathurlabstanford/actions/runs/28088633541"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.1",
      "date": "2026-06-24T09:31:21.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "c5cc0ed2438806153e230662ee20c194fb48bec5",
      "fileid": "dd9f25273a61d8549c686755a26666143df3c4c6392d31c8e61b8eac76b4e178",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mathurlabstanford/actions/runs/28088633541"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.1",
      "date": "2026-06-24T09:31:07.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "c5cc0ed2438806153e230662ee20c194fb48bec5",
      "fileid": "4687dde2bb3ca0e92e53b8aae0ffb6b0b9f34802bb113e527384c7a92403face",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mathurlabstanford/actions/runs/28088633541"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.1",
      "date": "2026-06-24T09:30:30.000Z",
      "arch": "aarch64",
      "commit": "c5cc0ed2438806153e230662ee20c194fb48bec5",
      "fileid": "48d06cd998f5206e960b4f436f7e14eed8408a5b3c6daff14ecaa45bd7d25693",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mathurlabstanford/actions/runs/28088633541"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.1",
      "date": "2026-06-24T09:32:57.000Z",
      "arch": "x86_64",
      "commit": "c5cc0ed2438806153e230662ee20c194fb48bec5",
      "fileid": "2585839da6d28cc8e52d23a20228d3342f42aab138cb236c3def591663b92ce2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mathurlabstanford/actions/runs/28088633541"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.2.1",
      "date": "2026-06-24T09:30:38.000Z",
      "arch": "aarch64",
      "commit": "c5cc0ed2438806153e230662ee20c194fb48bec5",
      "fileid": "1e90f36e8cbc20a8424a5ec9a72f19baf168db0ff073b8c0dd5ee5fba39915b1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mathurlabstanford/actions/runs/28088633541"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.2.1",
      "date": "2026-06-24T09:34:05.000Z",
      "arch": "x86_64",
      "commit": "c5cc0ed2438806153e230662ee20c194fb48bec5",
      "fileid": "d1b136ca35d7aec7b9f31e567886289881ebcd0a64e99b8d1a265462d8b30f85",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mathurlabstanford/actions/runs/28088633541"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.1",
      "date": "2026-06-24T09:30:26.000Z",
      "arch": "x86_64",
      "commit": "c5cc0ed2438806153e230662ee20c194fb48bec5",
      "fileid": "c6fd5e6104fddc044bc80dd36e066db1e62bcf54ce6f85a270866afbc9ff339d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mathurlabstanford/actions/runs/28088633541"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.1",
      "date": "2026-06-24T09:30:33.000Z",
      "arch": "x86_64",
      "commit": "c5cc0ed2438806153e230662ee20c194fb48bec5",
      "fileid": "e66a7c761cffc586e86d686245e4321b6083fd953e5e4ff49d8d65c84ab4c923",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mathurlabstanford/actions/runs/28088633541"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.2.1",
      "date": "2026-06-24T09:30:20.000Z",
      "arch": "x86_64",
      "commit": "c5cc0ed2438806153e230662ee20c194fb48bec5",
      "fileid": "e74a030e4735d37a7b8baeecd38ed4b5773c3004f37d8a2d82edaa1c8a663b24",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mathurlabstanford/actions/runs/28088633541"
    }
  ]
}