{
  "_id": "6a207405cd65a98ecbd1245e",
  "Package": "bayprior",
  "Title": "Bayesian Prior Elicitation and Diagnostics for Clinical Trials",
  "Version": "0.2.12",
  "Authors@R": "person(\"Ndoh\", \"Penn\", email = \"ndohpenn9@gmail.com\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0009-0003-9054-465X\"))",
  "Description": "A toolkit for constructing, validating, and justifying\nBayesian priors in clinical trial settings. Implements expert\nelicitation via quantile matching, the roulette method, and\nmoment matching across six distribution families, linear and\nlogarithmic expert pooling, prior-data conflict diagnostics\nincluding the Box p-value, surprise index, information\ndivergence, and Mahalanobis distance, sensitivity analyses with\ntornado and influence heatmap plots, sceptical, robust, and\npower priors, and automated prior justification reports.\nIncludes a fully modular 'Shiny' application for interactive\nuse. Methods based on O'Hagan et al. (2006,\nISBN:9780470029886), Box (1980) <doi:10.2307/2982063>, Oakley\nand O'Hagan (2010) <https://tonyohagan.co.uk/shelf/>, Schmidli\net al. (2014) <doi:10.1111/biom.12242>, Ibrahim and Chen (2000)\n<doi:10.1214/ss/1009212673>, Spiegelhalter et al. (1994)\n<doi:10.2307/2983527>.",
  "License": "GPL-3",
  "URL": "https://github.com/ndohpenngit/bayprior",
  "BugReports": "https://github.com/ndohpenngit/bayprior/issues",
  "VignetteBuilder": "knitr",
  "Config/Needs/vignettes": "knitr, rmarkdown",
  "Config/testthat/edition": "3",
  "Encoding": "UTF-8",
  "Language": "en-GB",
  "RoxygenNote": "7.3.3",
  "SystemRequirements": "Quarto CLI (>= 1.5, https://quarto.org)",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-03 18:32:29 UTC",
    "User": "root"
  },
  "Author": "Ndoh Penn [aut, cre] (ORCID:\n<https://orcid.org/0009-0003-9054-465X>)",
  "Maintainer": "Ndoh Penn <ndohpenn9@gmail.com>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-06-03 17:23:27 UTC",
  "RemoteUrl": "https://github.com/cran/bayprior",
  "RemoteRef": "HEAD",
  "RemoteSha": "ca3749ef57eeddb951fc738bf3f591af9298f4d2",
  "MD5sum": "e6595180d0851abd379fb0f817e6fb14",
  "_user": "cran",
  "_type": "src",
  "_file": "bayprior_0.2.12.tar.gz",
  "_fileid": "a12a284eed5db1131164920a97d681cb513b63684458947fa98d3368c26836cd",
  "_filesize": 6384293,
  "_sha256": "a12a284eed5db1131164920a97d681cb513b63684458947fa98d3368c26836cd",
  "_created": "2026-06-03T18:32:29.000Z",
  "_published": "2026-06-03T18:35:49.395Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79367569047,
      "time": 161,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7393503316"
    },
    {
      "job": 79367569073,
      "time": 153,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7393500663"
    },
    {
      "job": 79366793811,
      "time": 236,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7393441595"
    },
    {
      "job": 79367569146,
      "time": 137,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7393494537"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/26904820830",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/cran/bayprior",
  "_commit": {
    "id": "ca3749ef57eeddb951fc738bf3f591af9298f4d2",
    "author": "Ndoh Penn <ndohpenn9@gmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.2.12\n",
    "time": 1780507407
  },
  "_maintainer": {
    "name": "Ndoh Penn",
    "email": "ndohpenn9@gmail.com",
    "login": "ndohpenngit",
    "linkedin": "in/ndohpenn",
    "twitter": "@ndoh_penn",
    "description": "Statistician",
    "uuid": 55984177
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "cli",
      "version": ">= 3.6.0",
      "role": "Imports"
    },
    {
      "package": "config",
      "version": ">= 0.3.1",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "version": ">= 1.1.0",
      "role": "Imports"
    },
    {
      "package": "DT",
      "version": ">= 0.27",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "version": ">= 3.4.0",
      "role": "Imports"
    },
    {
      "package": "glue",
      "version": ">= 1.6.2",
      "role": "Imports"
    },
    {
      "package": "golem",
      "version": ">= 0.4.1",
      "role": "Imports"
    },
    {
      "package": "plotly",
      "version": ">= 4.10.1",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "version": ">= 1.0.0",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "version": ">= 1.2.0",
      "role": "Imports"
    },
    {
      "package": "shiny",
      "version": ">= 1.7.4",
      "role": "Imports"
    },
    {
      "package": "shinycssloaders",
      "version": ">= 1.0.0",
      "role": "Imports"
    },
    {
      "package": "shinydashboard",
      "version": ">= 0.7.2",
      "role": "Imports"
    },
    {
      "package": "shinyjs",
      "version": ">= 2.1.0",
      "role": "Imports"
    },
    {
      "package": "shinyWidgets",
      "version": ">= 0.7.6",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "htmlwidgets",
      "version": ">= 1.5.4",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "version": ">= 1.40",
      "role": "Suggests"
    },
    {
      "package": "patchwork",
      "version": ">= 1.1.0",
      "role": "Suggests"
    },
    {
      "package": "quarto",
      "version": ">= 1.4",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "version": ">= 2.20",
      "role": "Suggests"
    },
    {
      "package": "shinytest2",
      "version": ">= 0.3.1",
      "role": "Suggests"
    },
    {
      "package": "spelling",
      "version": ">= 2.2.0",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "vdiffr",
      "version": ">= 1.0.0",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "version": ">= 2.5.0",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-23",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.2.12",
      "date": "2026-06-03"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "ndohpenngit",
      "count": 1,
      "uuid": 55984177
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/bayprior"
  },
  "_devurl": "https://github.com/ndohpenngit/bayprior",
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/bayprior.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.2.12",
      "date": "2026-06-03"
    }
  ],
  "_exports": [
    "aggregate_experts",
    "as_prior",
    "calibrate_power_prior",
    "conflict_mahalanobis",
    "elicit_beta",
    "elicit_exponential",
    "elicit_gamma",
    "elicit_lognormal",
    "elicit_mixture",
    "elicit_normal",
    "elicit_roulette",
    "elicit_weibull",
    "plot_prior_likelihood",
    "plot_sensitivity",
    "plot_tornado",
    "prior_conflict",
    "prior_report",
    "robust_prior",
    "run_app",
    "sceptical_prior",
    "sensitivity_cri",
    "sensitivity_grid"
  ],
  "_help": [
    {
      "page": "aggregate_experts",
      "title": "Aggregate multiple expert priors into a consensus prior",
      "topics": [
        "aggregate_experts"
      ]
    },
    {
      "page": "as_prior",
      "title": "Constructor for bayprior from raw parameters",
      "topics": [
        "as_prior"
      ]
    },
    {
      "page": "bayprior",
      "title": "bayprior: Bayesian Prior Elicitation for Clinical Trials",
      "topics": [
        "bayprior-package",
        "bayprior"
      ]
    },
    {
      "page": "calibrate_power_prior",
      "title": "Calibrate power prior weight via Bayes Factor",
      "topics": [
        "calibrate_power_prior"
      ]
    },
    {
      "page": "conflict_mahalanobis",
      "title": "Multivariate prior-data conflict via Mahalanobis distance",
      "topics": [
        "conflict_mahalanobis"
      ]
    },
    {
      "page": "elicit_beta",
      "title": "Elicit a Beta prior via quantile matching or moment matching",
      "topics": [
        "elicit_beta"
      ]
    },
    {
      "page": "elicit_exponential",
      "title": "Elicit an Exponential prior via moments, rate, or quantile matching",
      "topics": [
        "elicit_exponential"
      ]
    },
    {
      "page": "elicit_gamma",
      "title": "Elicit a Gamma prior via quantile matching or moment matching",
      "topics": [
        "elicit_gamma"
      ]
    },
    {
      "page": "elicit_lognormal",
      "title": "Elicit a Log-Normal prior via quantile matching or moment matching",
      "topics": [
        "elicit_lognormal"
      ]
    },
    {
      "page": "elicit_mixture",
      "title": "Elicit a mixture prior",
      "topics": [
        "elicit_mixture"
      ]
    },
    {
      "page": "elicit_normal",
      "title": "Elicit a Normal prior via quantile matching or moment matching",
      "topics": [
        "elicit_normal"
      ]
    },
    {
      "page": "elicit_roulette",
      "title": "Roulette-method elicitation (chip-allocation)",
      "topics": [
        "elicit_roulette"
      ]
    },
    {
      "page": "elicit_weibull",
      "title": "Elicit a Weibull prior via moments, direct parameters, or quantile matching",
      "topics": [
        "elicit_weibull"
      ]
    },
    {
      "page": "plot_prior_likelihood",
      "title": "Plot prior, likelihood, and posterior density overlays",
      "topics": [
        "plot_prior_likelihood"
      ]
    },
    {
      "page": "plot_sensitivity",
      "title": "Plot sensitivity analysis results",
      "topics": [
        "plot_sensitivity"
      ]
    },
    {
      "page": "plot_tornado",
      "title": "Tornado plot of prior influence on posterior quantities",
      "topics": [
        "plot_tornado"
      ]
    },
    {
      "page": "plot.bayprior_power_prior",
      "title": "Plot calibration curve for power prior weight selection",
      "topics": [
        "plot.bayprior_power_prior"
      ]
    },
    {
      "page": "print.bayprior",
      "title": "Print method for bayprior objects",
      "topics": [
        "print.bayprior"
      ]
    },
    {
      "page": "print.bayprior_conflict",
      "title": "Print method for bayprior_conflict objects",
      "topics": [
        "print.bayprior_conflict"
      ]
    },
    {
      "page": "print.bayprior_conflict_mv",
      "title": "Print method for multivariate conflict objects",
      "topics": [
        "print.bayprior_conflict_mv"
      ]
    },
    {
      "page": "print.bayprior_power_prior",
      "title": "Print method for bayprior_power_prior objects",
      "topics": [
        "print.bayprior_power_prior"
      ]
    },
    {
      "page": "prior_conflict",
      "title": "Compute prior-data conflict diagnostics",
      "topics": [
        "prior_conflict"
      ]
    },
    {
      "page": "prior_report",
      "title": "Generate a Prior Justification Report",
      "topics": [
        "prior_report"
      ]
    },
    {
      "page": "robust_prior",
      "title": "Construct a robust (heavy-tailed mixture) prior",
      "topics": [
        "robust_prior"
      ]
    },
    {
      "page": "run_app",
      "title": "Run the bayprior Shiny Application",
      "topics": [
        "run_app"
      ]
    },
    {
      "page": "sceptical_prior",
      "title": "Construct a sceptical (penalised-enthusiasm) prior",
      "topics": [
        "sceptical_prior"
      ]
    },
    {
      "page": "sensitivity_cri",
      "title": "Sensitivity of posterior CrI to prior hyperparameters",
      "topics": [
        "sensitivity_cri"
      ]
    },
    {
      "page": "sensitivity_grid",
      "title": "Sensitivity grid over prior hyperparameters",
      "topics": [
        "sensitivity_grid"
      ]
    },
    {
      "page": "summary.bayprior",
      "title": "Summary method for bayprior objects",
      "topics": [
        "summary.bayprior"
      ]
    }
  ],
  "_pkglogo": "https://github.com/cran/bayprior/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/cran/bayprior/raw/HEAD/README.md",
  "_rundeps": [
    "askpass",
    "attempt",
    "base64enc",
    "bslib",
    "cachem",
    "cli",
    "commonmark",
    "config",
    "cpp11",
    "crosstalk",
    "curl",
    "data.table",
    "digest",
    "dplyr",
    "DT",
    "evaluate",
    "farver",
    "fastmap",
    "fontawesome",
    "fs",
    "generics",
    "ggplot2",
    "glue",
    "golem",
    "gtable",
    "here",
    "highr",
    "htmltools",
    "htmlwidgets",
    "httpuv",
    "httr",
    "isoband",
    "jquerylib",
    "jsonlite",
    "knitr",
    "labeling",
    "later",
    "lazyeval",
    "lifecycle",
    "magrittr",
    "memoise",
    "mime",
    "openssl",
    "otel",
    "pillar",
    "pkgconfig",
    "plotly",
    "promises",
    "purrr",
    "R6",
    "rappdirs",
    "RColorBrewer",
    "Rcpp",
    "rlang",
    "rmarkdown",
    "rprojroot",
    "S7",
    "sass",
    "scales",
    "shiny",
    "shinycssloaders",
    "shinydashboard",
    "shinyjs",
    "shinyWidgets",
    "sourcetools",
    "stringi",
    "stringr",
    "sys",
    "tibble",
    "tidyr",
    "tidyselect",
    "tinytex",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "xfun",
    "xtable",
    "yaml"
  ],
  "_vignettes": [
    {
      "source": "bayprior-introduction.Rmd",
      "filename": "bayprior-introduction.html",
      "title": "Introduction to bayprior",
      "author": "Ndoh Penn",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Prior Elicitation",
        "Beta Prior (Binary Endpoints)",
        "Quantile Matching",
        "Moment Matching",
        "Normal Prior (Continuous Endpoints)",
        "Gamma Prior (Rate / Count Endpoints)",
        "Log-Normal Prior (Hazard Ratios)",
        "Roulette Method",
        "Expert Pooling",
        "Linear Pooling",
        "Manual Mixture Construction",
        "Prior-Data Conflict Diagnostics",
        "Sensitivity Analysis",
        "Tornado Plot",
        "Influence Heatmap",
        "Credible Interval Sensitivity",
        "Robust and Sceptical Priors",
        "Robust Mixture Prior",
        "Sceptical Prior",
        "Power Prior Calibration",
        "Multivariate Conflict Diagnostics",
        "Generating a Prior Justification Report",
        "Complete Worked Example",
        "Function Reference",
        "References"
      ],
      "created": "2026-06-03 17:23:27",
      "modified": "2026-06-03 17:23:27",
      "commits": 1
    },
    {
      "source": "prior-elicitation.Rmd",
      "filename": "prior-elicitation.html",
      "title": "Prior Elicitation Methods",
      "author": "Ndoh Penn",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Distribution Families",
        "Elicitation Methods",
        "Beta Prior (Binary Endpoints)",
        "Quantile Matching",
        "Moment Matching",
        "Normal Prior (Continuous Endpoints)",
        "Gamma Prior (Rate and Count Endpoints)",
        "Log-Normal Prior (Hazard Ratios)",
        "Exponential Prior (Constant Hazard Rates)",
        "Method: moments",
        "Method: rate",
        "Method: quantile",
        "Conjugate update",
        "Weibull Prior (Non-Constant Hazard Survival Times)",
        "Method: params",
        "Posterior approximation note",
        "Roulette Method",
        "Expert Pooling",
        "Linear Pooling",
        "Pooling Compatibility",
        "Prior Object Structure",
        "References"
      ],
      "created": "2026-06-03 17:23:27",
      "modified": "2026-06-03 17:23:27",
      "commits": 1
    },
    {
      "source": "conflict-diagnostics.Rmd",
      "filename": "conflict-diagnostics.html",
      "title": "Prior-Data Conflict Diagnostics",
      "author": "Ndoh Penn",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Why Conflict Diagnostics Matter",
        "Supported Data Types",
        "Univariate Conflict: prior_conflict()",
        "Binary Data",
        "The Four Diagnostics Explained",
        "1. Box's Prior Predictive P-value",
        "2. Surprise Index",
        "3. KL Divergence",
        "4. Bhattacharyya Overlap Coefficient",
        "Threshold Summary",
        "Prior-Likelihood-Posterior Overlay",
        "Continuous Endpoint Conflict",
        "Poisson / Count Data Conflict",
        "Survival / Time-to-Event Data Conflict",
        "Compatibility Validation",
        "Mixture Prior Conflict",
        "Multivariate Conflict: conflict_mahalanobis()",
        "Conflict Severity Classification",
        "References"
      ],
      "created": "2026-06-03 17:23:27",
      "modified": "2026-06-03 17:23:27",
      "commits": 1
    },
    {
      "source": "regulatory-reporting.Rmd",
      "filename": "regulatory-reporting.html",
      "title": "Regulatory Reporting",
      "author": "Ndoh Penn",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Regulatory Context",
        "The Prior Justification Report",
        "What It Contains",
        "Output Formats",
        "Generating a Report",
        "The Notes Field",
        "The FDA/EMA Compliance Checklist",
        "Session Reproducibility",
        "Working with the Shiny App",
        "Pre-Submission Checklist",
        "References"
      ],
      "created": "2026-06-03 17:23:27",
      "modified": "2026-06-03 17:23:27",
      "commits": 1
    },
    {
      "source": "robust-priors.Rmd",
      "filename": "robust-priors.html",
      "title": "Robust, Sceptical, and Power Priors",
      "author": "Ndoh Penn",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Robust Mixture Prior",
        "Concept",
        "Usage",
        "Varying the Vague Weight",
        "Vague SD Multiplier",
        "Sceptical Prior",
        "Normal Family (Mean Differences, Log Odds Ratios)",
        "Beta Family (Response Rates)",
        "Log-Normal Family (Hazard Ratios)",
        "Enthusiastic vs Sceptical Pair",
        "Power Prior",
        "Calibrating $\\delta$",
        "Compatibility Method",
        "Power Prior for Other Families",
        "Choosing the Right Alternative Prior",
        "Including Robust Priors in the Regulatory Report",
        "References"
      ],
      "created": "2026-06-03 17:23:27",
      "modified": "2026-06-03 17:23:27",
      "commits": 1
    },
    {
      "source": "sensitivity-analysis.Rmd",
      "filename": "sensitivity-analysis.html",
      "title": "Sensitivity Analysis",
      "author": "Ndoh Penn",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Why Sensitivity Analysis Is Required",
        "Supported Data Types",
        "Binary Data",
        "Credible Interval Sensitivity",
        "Poisson / Count Data",
        "Survival / Time-to-Event Data",
        "Continuous Endpoints",
        "Interpreting Influence Scores",
        "Mixture Prior Sensitivity",
        "Regulatory Reporting",
        "References"
      ],
      "created": "2026-06-03 17:23:27",
      "modified": "2026-06-03 17:23:27",
      "commits": 1
    }
  ],
  "_score": 3.4771212547196626,
  "_indexed": false,
  "_nocasepkg": "bayprior",
  "_universes": [
    "cran",
    "ndohpenngit"
  ],
  "_indexurl": "https://ndohpenngit.r-universe.dev/bayprior",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.12",
      "date": "2026-06-03T18:34:59.000Z",
      "distro": "noble",
      "commit": "ca3749ef57eeddb951fc738bf3f591af9298f4d2",
      "fileid": "a4d1c8f436cc03cdf4b6df498c2da4a072d703461134ba126f3da010aa8a5df6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26904820830"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.12",
      "date": "2026-06-03T18:34:53.000Z",
      "distro": "noble",
      "commit": "ca3749ef57eeddb951fc738bf3f591af9298f4d2",
      "fileid": "624217aa9f846585e797f040151fd308befc56bc04d20c5dce1b6129de80b600",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26904820830"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.12",
      "date": "2026-06-03T18:35:09.000Z",
      "commit": "ca3749ef57eeddb951fc738bf3f591af9298f4d2",
      "fileid": "d77cb803e5fe377012be6fbdacae700e2e7f193cb7261d719216b84e390b2782",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/26904820830"
    }
  ]
}