{
  "_id": "6a22ba210ef520ea2f5906a1",
  "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-06-05 11:55:40 UTC",
    "User": "root"
  },
  "Author": "Mohsen Sadatsafavi [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-0419-7862>),\nAnna Luo [ctb]",
  "MD5sum": "0392469d4ab441ee7a628e013208453e",
  "_user": "resplab",
  "_type": "src",
  "_file": "bayespmtools_0.0.2.tar.gz",
  "_fileid": "8fc00a23ee939eb1fe4c10bd8a17ca93f7386abe4c633e77523bfb068e00ba31",
  "_filesize": 4140954,
  "_sha256": "8fc00a23ee939eb1fe4c10bd8a17ca93f7386abe4c633e77523bfb068e00ba31",
  "_created": "2026-06-05T11:55:40.000Z",
  "_published": "2026-06-05T11:59:29.289Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79722288758,
      "time": 167,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7435953984"
    },
    {
      "job": 79722288771,
      "time": 191,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7435960667"
    },
    {
      "job": 79722288772,
      "time": 121,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7435940624"
    },
    {
      "job": 79722288778,
      "time": 148,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7435948166"
    },
    {
      "job": 79721768339,
      "time": 220,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7435905384"
    },
    {
      "job": 79722288765,
      "time": 139,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7435945313"
    },
    {
      "job": 79722288812,
      "time": 126,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7435941945"
    },
    {
      "job": 79722288799,
      "time": 142,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7435946562"
    },
    {
      "job": 79722288796,
      "time": 134,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7435944027"
    }
  ],
  "_buildurl": "https://github.com/r-universe/resplab/actions/runs/27013233054",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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"
  },
  "_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",
    "description": "The Respiratory Evaluation Sciences Program (RESP) at the University of British Columbia"
  },
  "_downloads": {
    "count": 456,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/bayespmtools"
  },
  "_devurl": "https://github.com/resplab/bayespmtools",
  "_searchresults": 8,
  "_rbuild": "4.6.0",
  "_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",
    "microbenchmark",
    "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-06-05T11:58:02.000Z",
      "distro": "noble",
      "commit": "29c936be98a22df47c9f5c2c6e241fbe646dd349",
      "fileid": "1fcedeb650406e0280ea3afa1f55973aacf49c815e488f1900bdd62d5443de20",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/27013233054"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.0.2",
      "date": "2026-06-05T11:58:16.000Z",
      "distro": "noble",
      "commit": "29c936be98a22df47c9f5c2c6e241fbe646dd349",
      "fileid": "2c01f3faa92158b0a0dc73dd25b226e166c79f5cf80d2ad20f50d587c171a2d2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/27013233054"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.2",
      "date": "2026-06-05T11:57:29.000Z",
      "commit": "29c936be98a22df47c9f5c2c6e241fbe646dd349",
      "fileid": "938739ad8f8c3243cea72e8308fa1fd0aee518dc28168f1693a21c58d01c4bfa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/27013233054"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.0.2",
      "date": "2026-06-05T11:57:42.000Z",
      "commit": "29c936be98a22df47c9f5c2c6e241fbe646dd349",
      "fileid": "f5aaad979aca2dcbdaa5a8f11148095265ea8ebb217996b8343ccafa3647cf1f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/27013233054"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.2",
      "date": "2026-06-05T11:58:21.000Z",
      "commit": "29c936be98a22df47c9f5c2c6e241fbe646dd349",
      "fileid": "d293892ce1eff0a7b53b8414a632ee5daceb264fb08b1948752047fac9fab17e",
      "status": "success",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/27013233054"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.2",
      "date": "2026-06-05T11:57:06.000Z",
      "commit": "29c936be98a22df47c9f5c2c6e241fbe646dd349",
      "fileid": "f5878aeda0daae0ed9f3662016516c5d9fcc4780a12029b6fcbb3ed62c6552be",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/27013233054"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.2",
      "date": "2026-06-05T11:57:19.000Z",
      "commit": "29c936be98a22df47c9f5c2c6e241fbe646dd349",
      "fileid": "d61d1606f2a4eae7606946afd65e3f18828679c96055b013e49a8967d3eebe2a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/27013233054"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.0.2",
      "date": "2026-06-05T11:57:13.000Z",
      "commit": "29c936be98a22df47c9f5c2c6e241fbe646dd349",
      "fileid": "17965ec390e517d3af52bf7165860884781c22f8f2b1f93df2847ab15c423234",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/27013233054"
    }
  ]
}