{
  "_id": "6a1f39bfb401979e73428f5b",
  "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-05-08 09:22:19 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": "fc8478c8e5378b346714426cc610a370",
  "_user": "mathurlabstanford",
  "_type": "src",
  "_file": "phacking_0.2.1.tar.gz",
  "_fileid": "28ca25ddd66a0b2f8e1297b620698273bab89f40551019de56eb80f7e1e6566f",
  "_filesize": 145057,
  "_sha256": "28ca25ddd66a0b2f8e1297b620698273bab89f40551019de56eb80f7e1e6566f",
  "_created": "2026-05-08T09:22:19.000Z",
  "_published": "2026-06-02T20:14:55.392Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79162967502,
      "time": 314,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6876045658"
    },
    {
      "job": 79162967532,
      "time": 338,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6876051908"
    },
    {
      "job": 79162967742,
      "time": 303,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6876042702"
    },
    {
      "job": 79162967680,
      "time": 361,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6876060234"
    },
    {
      "job": 79162967831,
      "time": 196,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6876150682"
    },
    {
      "job": 79162967922,
      "time": 494,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6876182288"
    },
    {
      "job": 79162967579,
      "time": 215,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6876192583"
    },
    {
      "job": 79162967520,
      "time": 413,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6876158139"
    },
    {
      "job": 79162967012,
      "time": 302,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6875953512"
    },
    {
      "job": 79162966635,
      "time": 148,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 79162967567,
      "time": 387,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6876066811"
    },
    {
      "job": 79162967550,
      "time": 383,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6876064601"
    },
    {
      "job": 79162967580,
      "time": 347,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6876054685"
    }
  ],
  "_buildurl": "https://github.com/r-universe/mathurlabstanford/actions/runs/25547610847",
  "_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",
    "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"
  },
  "_downloads": {
    "count": 284,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/phacking"
  },
  "_devurl": "https://github.com/mathurlabstanford/phacking",
  "_pkgdown": "https://mathurlabstanford.github.io/phacking/",
  "_searchresults": 7,
  "_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",
    "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",
    "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": "14.2.0-4ubuntu2~24.04.1",
      "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-05-08T09:25:39.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "c5cc0ed2438806153e230662ee20c194fb48bec5",
      "fileid": "3168f2d084405df2c2f8349cb57843ff72ffde46f6e3e151a176e156ba1500fc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mathurlabstanford/actions/runs/25547610847"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.1",
      "date": "2026-05-08T09:26:27.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "c5cc0ed2438806153e230662ee20c194fb48bec5",
      "fileid": "3b5e5bba3a12ef81534424eddd7382c289c32b1c3f9c285f87db7a15068ab2b1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mathurlabstanford/actions/runs/25547610847"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.1",
      "date": "2026-05-08T09:25:37.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "c5cc0ed2438806153e230662ee20c194fb48bec5",
      "fileid": "3577d17c8e1479bb45a157717bd21249ccd328215f6843bc6b849edbbfbd3834",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mathurlabstanford/actions/runs/25547610847"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.1",
      "date": "2026-05-08T09:25:58.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "c5cc0ed2438806153e230662ee20c194fb48bec5",
      "fileid": "0e0df8b5af5a318ec1797245767d344f337ce42ab868b1fea1b4924356486574",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mathurlabstanford/actions/runs/25547610847"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.1",
      "date": "2026-05-08T09:32:48.000Z",
      "arch": "aarch64",
      "commit": "c5cc0ed2438806153e230662ee20c194fb48bec5",
      "fileid": "58b38cd6024d68f0eae50422669002e1d25535eea3fca75d25dc4cadceeca1a6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mathurlabstanford/actions/runs/25547610847"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.1",
      "date": "2026-05-08T09:31:25.000Z",
      "arch": "x86_64",
      "commit": "c5cc0ed2438806153e230662ee20c194fb48bec5",
      "fileid": "201bc3a419bec3e31372291b814032412357e4bac2ef63510cd74e88beabc17e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mathurlabstanford/actions/runs/25547610847"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.2.1",
      "date": "2026-05-08T09:35:04.000Z",
      "arch": "aarch64",
      "commit": "c5cc0ed2438806153e230662ee20c194fb48bec5",
      "fileid": "8b1ca80a9255ebbe8cf0df9518a533a8a8a23845863753ed3b680ac865af484c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mathurlabstanford/actions/runs/25547610847"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.2.1",
      "date": "2026-05-08T09:30:52.000Z",
      "arch": "x86_64",
      "commit": "c5cc0ed2438806153e230662ee20c194fb48bec5",
      "fileid": "1d5b7f63185af8efe80befc179b97e28c87147c59bac4959d416bea7bab7cbd4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mathurlabstanford/actions/runs/25547610847"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.1",
      "date": "2026-05-08T09:25:27.000Z",
      "arch": "x86_64",
      "commit": "c5cc0ed2438806153e230662ee20c194fb48bec5",
      "fileid": "6ffd0797d8a347fc6022a6681284f0b209cf4998d832d887bd80ef4369b921ae",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mathurlabstanford/actions/runs/25547610847"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.1",
      "date": "2026-05-08T09:25:01.000Z",
      "arch": "x86_64",
      "commit": "c5cc0ed2438806153e230662ee20c194fb48bec5",
      "fileid": "00e15b275e60ee1d5891e7ac5091639e24366c7abc1749f6d6764d6fb5347ad9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mathurlabstanford/actions/runs/25547610847"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.2.1",
      "date": "2026-05-08T09:24:45.000Z",
      "arch": "x86_64",
      "commit": "c5cc0ed2438806153e230662ee20c194fb48bec5",
      "fileid": "93b26b73d3ebad079f2f312d65c810f6df0f98269ad7340689884a6743adecb1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mathurlabstanford/actions/runs/25547610847"
    }
  ]
}