{
  "_id": "6a50c1aa89c83ec243a30537",
  "Package": "bayespmtools",
  "Title": "Bayesian Sample Size and Precision Considerations for Risk\nPrediction Models",
  "Version": "0.0.2",
  "Authors@R": "c(person(given=\"Mohsen\", family=\"Sadatsafavi\", email=\"mohsen.sadatsafavi@ubc.ca\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0002-0419-7862\")),\nperson(given=\"Anna\", family=\"Luo\", email=\"aannaluo@gmail.com\", role=\"ctb\"))",
  "Maintainer": "Mohsen Sadatsafavi <mohsen.sadatsafavi@ubc.ca>",
  "Description": "Performs Bayesian sample size, precision, and\nvalue-of-information analysis for external validation of\nexisting multi-variable prediction models using the approach\nproposed by Sadatsafavi and colleagues (2026)\n<doi:10.1002/sim.70389>.",
  "URL": "https://github.com/resplab/bayespmtools",
  "BugReports": "https://github.com/resplab/bayespmtools/issues",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "LazyData": "true",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Config/roxygen2/version": "8.0.0",
  "Config/pak/sysreqs": "cmake make libicu-dev",
  "Repository": "https://resplab.r-universe.dev",
  "Date/Publication": "2026-06-03 04:20:57 UTC",
  "RemoteUrl": "https://github.com/resplab/bayespmtools",
  "RemoteRef": "HEAD",
  "RemoteSha": "29c936be98a22df47c9f5c2c6e241fbe646dd349",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-07-10 09:51:00 UTC",
    "User": "root"
  },
  "Author": "Mohsen Sadatsafavi [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-0419-7862>),\nAnna Luo [ctb]",
  "_user": "resplab",
  "_type": "src",
  "_file": "bayespmtools_0.0.2.tar.gz",
  "_fileid": "https://r2.ropensci.org/b239878eebc319a1ff8a8a5d012560379261e736d7053e8707ecaa50911ddcba",
  "_filesize": 4140685,
  "_sha256": "b239878eebc319a1ff8a8a5d012560379261e736d7053e8707ecaa50911ddcba",
  "_expires": "2026-10-18T09:55:53.000Z",
  "_created": "2026-07-10T09:51:00.000Z",
  "_published": "2026-07-10T09:55:54.887Z",
  "_jobs": [
    {
      "job": 86334682507,
      "time": 196,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8224185028"
    },
    {
      "job": 86334682537,
      "time": 250,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8224205594"
    },
    {
      "job": 86334682497,
      "time": 138,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8224164414"
    },
    {
      "job": 86334682517,
      "time": 156,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8224170641"
    },
    {
      "job": 86334020302,
      "time": 222,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8224113503"
    },
    {
      "job": 86334682485,
      "time": 160,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8224171537"
    },
    {
      "job": 86334682587,
      "time": 145,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8224167231"
    },
    {
      "job": 86334682498,
      "time": 120,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8224158140"
    },
    {
      "job": 86334682492,
      "time": 132,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8224162151"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/resplab/actions/runs/29084205600",
  "_status": "success",
  "_upstream": "https://github.com/resplab/bayespmtools",
  "_commit": {
    "id": "29c936be98a22df47c9f5c2c6e241fbe646dd349",
    "author": "Mohsen Sadatsafavi <msafavi@mail.ubc.ca>",
    "committer": "Mohsen Sadatsafavi <msafavi@mail.ubc.ca>",
    "message": "Submitted to CRAN\n",
    "time": 1780460457
  },
  "_maintainer": {
    "name": "Mohsen Sadatsafavi",
    "email": "mohsen.sadatsafavi@ubc.ca",
    "orcid": "0000-0002-0419-7862"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "fastLogisticRegressionWrap",
      "role": "Imports"
    },
    {
      "package": "logitnorm",
      "role": "Imports"
    },
    {
      "package": "mc2d",
      "role": "Imports"
    },
    {
      "package": "mcmapper",
      "role": "Imports"
    },
    {
      "package": "pROC",
      "role": "Imports"
    },
    {
      "package": "cobs",
      "role": "Imports"
    },
    {
      "package": "OOR",
      "role": "Imports"
    },
    {
      "package": "quantreg",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "resplab",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-35",
      "n": 2
    },
    {
      "week": "2025-36",
      "n": 2
    },
    {
      "week": "2025-37",
      "n": 1
    },
    {
      "week": "2026-01",
      "n": 9
    },
    {
      "week": "2026-02",
      "n": 5
    },
    {
      "week": "2026-08",
      "n": 3
    },
    {
      "week": "2026-23",
      "n": 5
    }
  ],
  "_tags": [],
  "_stars": 3,
  "_contributors": [
    {
      "user": "aannaluo",
      "count": 16,
      "uuid": 87561239
    },
    {
      "user": "msadatsafavi",
      "count": 8,
      "uuid": 25162764
    }
  ],
  "_userbio": {
    "uuid": 49206837,
    "type": "organization",
    "name": "RESP",
    "followers": 15,
    "description": "The Respiratory Evaluation Sciences Program (RESP) at the University of British Columbia"
  },
  "_downloads": {
    "count": 472,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/bayespmtools"
  },
  "_devurl": "https://github.com/resplab/bayespmtools",
  "_searchresults": 8,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/bayespmtools.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"
  ],
  "_homeurl": "https://github.com/resplab/bayespmtools",
  "_realowner": "resplab",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.0.1",
      "date": "2026-03-29"
    },
    {
      "version": "0.0.2",
      "date": "2026-06-05"
    }
  ],
  "_exports": [
    "bpm_valprec",
    "bpm_valsamp",
    "calc_se_sp",
    "plot_cal_distance",
    "plot_cal_instability",
    "process_evidence"
  ],
  "_datasets": [
    {
      "name": "isaric",
      "title": "Isaric Dataset",
      "object": "isaric",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Region",
        "Sample_Size",
        "n",
        "n_events",
        "cstat",
        "cstat_l",
        "cal_mean",
        "cal_mean_l",
        "cal_slope",
        "cal_slope_l"
      ],
      "rows": 8,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "bpm_valprec",
      "title": "Bayesian Precision / VoI Calculator",
      "topics": [
        "bpm_valprec"
      ]
    },
    {
      "page": "bpm_valsamp",
      "title": "Bayesian Sample Size Calculator for External Validation",
      "topics": [
        "bpm_valsamp"
      ]
    },
    {
      "page": "calc_ciw_2s",
      "title": "Calculates Pre-Posterior Distribution of 95% CI Widths Using Two-step Method",
      "topics": [
        "calc_ciw_2s"
      ]
    },
    {
      "page": "calc_ciw_mc",
      "title": "#'Calculates Pre-Posterior Distribution of 95% CI Widths Based on Given Method",
      "topics": [
        "calc_ciw_mc"
      ]
    },
    {
      "page": "calc_ciw_sample",
      "title": "Calculates Pre-Posterior Distribution of 95% CI Widths Using Sampling-based Simulation",
      "topics": [
        "calc_ciw_sample"
      ]
    },
    {
      "page": "calc_cstat",
      "title": "Calculates the C-statistic of Model",
      "topics": [
        "calc_cstat"
      ]
    },
    {
      "page": "calc_riley_vars",
      "title": "Calculates Approximate Variances and Covariance for Performance Metrics",
      "topics": [
        "calc_riley_vars"
      ]
    },
    {
      "page": "calc_se_sp",
      "title": "Calculates the Sensitivity and Specificity",
      "topics": [
        "calc_se_sp"
      ]
    },
    {
      "page": "find_n_mean",
      "title": "Calculates Sample Size Given Target Mean CI",
      "topics": [
        "find_n_mean"
      ]
    },
    {
      "page": "find_n_quantile",
      "title": "Calculates Sample Size Given Target Quantile",
      "topics": [
        "find_n_quantile"
      ]
    },
    {
      "page": "infer_cal_int_from_mean",
      "title": "Infer Calibration Intercept from Mean Calibration",
      "topics": [
        "infer_cal_int_from_mean"
      ]
    },
    {
      "page": "infer_cal_int_from_oe",
      "title": "Infer Calibration Intercept from O/E ratio",
      "topics": [
        "infer_cal_int_from_oe"
      ]
    },
    {
      "page": "infer_correlation",
      "title": "Calculates Correlation",
      "topics": [
        "infer_correlation"
      ]
    },
    {
      "page": "inv_mean_quantile",
      "title": "Calculates the Model Parameters Given Quantile",
      "topics": [
        "inv_mean_quantile"
      ]
    },
    {
      "page": "inv_moments",
      "title": "Calculates the Model Parameters Given Moments",
      "topics": [
        "inv_moments"
      ]
    },
    {
      "page": "isaric",
      "title": "Isaric Dataset",
      "topics": [
        "isaric"
      ]
    },
    {
      "page": "moments",
      "title": "Mean and Variance Calculator",
      "topics": [
        "moments"
      ]
    },
    {
      "page": "plot_cal_distance",
      "title": "Plots Calibration Distance from Simulation Curves",
      "topics": [
        "plot_cal_distance"
      ]
    },
    {
      "page": "plot_cal_instability",
      "title": "Plots Calibration Instability from Simulated Calibration Curves",
      "topics": [
        "plot_cal_instability"
      ]
    },
    {
      "page": "process_evidence",
      "title": "Transforms Evidence Into Standardized Format",
      "topics": [
        "process_evidence"
      ]
    },
    {
      "page": "rbnorm",
      "title": "Generates Samples From Normal Distribution",
      "topics": [
        "rbnorm"
      ]
    },
    {
      "page": "riley_samp",
      "title": "Calculates Sample Size that Achieves Target CI Widths",
      "topics": [
        "riley_samp"
      ]
    }
  ],
  "_readme": "https://github.com/resplab/bayespmtools/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "backports",
    "boot",
    "broom",
    "car",
    "carData",
    "checkmate",
    "cli",
    "cobs",
    "colorspace",
    "corrplot",
    "cowplot",
    "cpp11",
    "Deriv",
    "doBy",
    "dplyr",
    "farver",
    "fastLogisticRegressionWrap",
    "forecast",
    "Formula",
    "fracdiff",
    "generics",
    "ggplot2",
    "ggpubr",
    "ggrepel",
    "ggsci",
    "ggsignif",
    "glue",
    "gridExtra",
    "gtable",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "lme4",
    "lmtest",
    "logitnorm",
    "magrittr",
    "MASS",
    "Matrix",
    "MatrixModels",
    "mc2d",
    "mcmapper",
    "mgcv",
    "minqa",
    "modelr",
    "mvtnorm",
    "nlme",
    "nloptr",
    "nnet",
    "numDeriv",
    "OOR",
    "pbkrtest",
    "pillar",
    "pkgconfig",
    "polynom",
    "pROC",
    "purrr",
    "quantreg",
    "R6",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "RcppNumerical",
    "Rdpack",
    "reformulas",
    "rlang",
    "rstatix",
    "S7",
    "scales",
    "SparseM",
    "stringi",
    "stringr",
    "survival",
    "tibble",
    "tidyr",
    "tidyselect",
    "timeDate",
    "urca",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "zoo"
  ],
  "_vignettes": [
    {
      "source": "bayespmtools_tutorial.Rmd",
      "filename": "bayespmtools_tutorial.html",
      "title": "Bayespmtools Package Tutorial",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "The ISARIC Model",
        "Specifying Evidence (Uncertainty Quantification)",
        "Sample size targets and rules",
        "Sample size calculator (bpm_valsamp())",
        "Computing precision / VoI for a given sample size (bpm_valprec())",
        "Drawing the EVSI curve",
        "References"
      ],
      "created": "2025-08-26 22:23:18",
      "modified": "2026-06-03 03:30:46",
      "commits": 10
    },
    {
      "source": "getting_started.Rmd",
      "filename": "getting_started.html",
      "title": "Getting Started with bayespmtools",
      "engine": "knitr::rmarkdown",
      "headings": [
        "What is bayespmtools?",
        "Why use a Bayesian approach?",
        "Quick Example",
        "Step 1: Specify Your Evidence",
        "Step 2: Define Your Targets",
        "Step 3: Calculate Sample Size",
        "Step 4: View Results",
        "Next Steps",
        "Key Functions",
        "Getting Help",
        "References"
      ],
      "created": "2026-01-03 20:28:15",
      "modified": "2026-06-03 03:30:46",
      "commits": 3
    }
  ],
  "_score": 5.3222192947339195,
  "_indexed": true,
  "_nocasepkg": "bayespmtools",
  "_universes": [
    "resplab"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.2",
      "date": "2026-07-10T09:53:42.000Z",
      "distro": "resolute",
      "commit": "29c936be98a22df47c9f5c2c6e241fbe646dd349",
      "fileid": "https://r2.ropensci.org/5bc5880772a053240e75e5c9a82e19c29d4d1f6cfa188c4c4ef94c0b35e3fde2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/29084205600"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.0.2",
      "date": "2026-07-10T09:54:33.000Z",
      "distro": "resolute",
      "commit": "29c936be98a22df47c9f5c2c6e241fbe646dd349",
      "fileid": "https://r2.ropensci.org/c8e908c1feb5e75718b2d8b46995972c8c9a532fde10f397f326ffa7bb008def",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/29084205600"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.2",
      "date": "2026-07-10T09:52:54.000Z",
      "commit": "29c936be98a22df47c9f5c2c6e241fbe646dd349",
      "fileid": "https://r2.ropensci.org/18f62f7a7a094da8ee49603109f89c93c93fa7758a3c4333018c0aa5652c43f7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/29084205600"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.0.2",
      "date": "2026-07-10T09:53:11.000Z",
      "commit": "29c936be98a22df47c9f5c2c6e241fbe646dd349",
      "fileid": "https://r2.ropensci.org/627742686538c72cd2a4c3d008e602774616973a2754b826511265ba5cddd6d9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/29084205600"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.2",
      "date": "2026-07-10T09:54:00.000Z",
      "commit": "29c936be98a22df47c9f5c2c6e241fbe646dd349",
      "fileid": "https://r2.ropensci.org/a7662d1c3d32782f13438789e3c32f0328845c72a84b258d5e2a5c9f69b7d7e2",
      "status": "success",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/29084205600"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.2",
      "date": "2026-07-10T09:52:45.000Z",
      "commit": "29c936be98a22df47c9f5c2c6e241fbe646dd349",
      "fileid": "https://r2.ropensci.org/b5643ee77612f2f3ca330f2e30753f238215c4e010a05dea3765d81e514e5e01",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/29084205600"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.2",
      "date": "2026-07-10T09:52:20.000Z",
      "commit": "29c936be98a22df47c9f5c2c6e241fbe646dd349",
      "fileid": "https://r2.ropensci.org/d9879f024f3be65e462583c60b6c6e91c853b167987cf80a93d741410fa9e038",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/29084205600"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.0.2",
      "date": "2026-07-10T09:52:30.000Z",
      "commit": "29c936be98a22df47c9f5c2c6e241fbe646dd349",
      "fileid": "https://r2.ropensci.org/a2b5a69da83a7bf5d06e1cd962982e956eee6997462300e4e46dc70df872657f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/29084205600"
    }
  ]
}