{
  "_id": "6ac77941de46216d5edd07c8",
  "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-10-08 10:17:05 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/77b0f96aa4c887d09263ea7432f9be2d745b10f06f51539fc45a01fa598e9b0c",
  "_filesize": 4140562,
  "_sha256": "77b0f96aa4c887d09263ea7432f9be2d745b10f06f51539fc45a01fa598e9b0c",
  "_expires": "2027-01-16T11:06:39.000Z",
  "_created": "2026-10-08T10:17:05.000Z",
  "_published": "2026-10-08T11:06:41.574Z",
  "_buildurl": "https://github.com/r-universe/resplab/actions/runs/37762028218",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 113262057237,
      "time": 180,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11542698741"
    },
    {
      "job": 113262056891,
      "time": 184,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11542149371"
    },
    {
      "job": 113262056881,
      "time": 126,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11546640102"
    },
    {
      "job": 113262057087,
      "time": 159,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11545956686"
    },
    {
      "job": 113260654087,
      "time": 228,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11542443294"
    },
    {
      "job": 113262056967,
      "time": 112,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11543350767"
    },
    {
      "job": 113262057099,
      "time": 129,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11542528862"
    },
    {
      "job": 113262057096,
      "time": 104,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11542808148"
    },
    {
      "job": 113262057126,
      "time": 117,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11542708174"
    }
  ],
  "_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": "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": 16,
    "description": "The Respiratory Evaluation Sciences Program (RESP) at the University of British Columbia"
  },
  "_downloads": {
    "count": 448,
    "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/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_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.079181246047625,
  "_indexed": true,
  "_nocasepkg": "bayespmtools",
  "_universes": [
    "resplab"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.2",
      "date": "2026-10-08T10:19:31.000Z",
      "distro": "resolute",
      "commit": "29c936be98a22df47c9f5c2c6e241fbe646dd349",
      "fileid": "https://r2.ropensci.org/c69b7ae7bbe9fead7893a4573b66129c76a375d4d92b014073abf7ef12a62de1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/37762028218"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.0.2",
      "date": "2026-10-08T10:19:31.000Z",
      "distro": "resolute",
      "commit": "29c936be98a22df47c9f5c2c6e241fbe646dd349",
      "fileid": "https://r2.ropensci.org/822b3f7844bd0a722e472deb466867d5eff7ae3d92fcfb8cd75759dd45982d16",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/37762028218"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.2",
      "date": "2026-10-08T11:03:01.000Z",
      "commit": "29c936be98a22df47c9f5c2c6e241fbe646dd349",
      "fileid": "https://r2.ropensci.org/3d512d4c0040e603afaa954e0499fe497ac9f1324e355d9087a80e1d2bb4a8a5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/37762028218"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.0.2",
      "date": "2026-10-08T11:05:12.000Z",
      "commit": "29c936be98a22df47c9f5c2c6e241fbe646dd349",
      "fileid": "https://r2.ropensci.org/cba4d45c92604c2368614766f6a481653acf8e31b90cbc8f62a0eeb4dfdde7d6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/37762028218"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.2",
      "date": "2026-10-08T10:19:19.000Z",
      "commit": "29c936be98a22df47c9f5c2c6e241fbe646dd349",
      "fileid": "https://r2.ropensci.org/8318f0c40deca67e4dcf471ebe77adef81ca565a42f40db4e047cd2cd9cb7fa7",
      "status": "success",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/37762028218"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.2",
      "date": "2026-10-08T10:18:29.000Z",
      "commit": "29c936be98a22df47c9f5c2c6e241fbe646dd349",
      "fileid": "https://r2.ropensci.org/b1874efcc85df20e429cda51d9ee1ab2ef670e623b6bd294787bd26bd056572d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/37762028218"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.2",
      "date": "2026-10-08T10:18:18.000Z",
      "commit": "29c936be98a22df47c9f5c2c6e241fbe646dd349",
      "fileid": "https://r2.ropensci.org/cb99f6e24554a1fbfeeab3c4177568046f4570afbcf5ee8323998a5d6dfdd7cd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/37762028218"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.0.2",
      "date": "2026-10-08T10:18:19.000Z",
      "commit": "29c936be98a22df47c9f5c2c6e241fbe646dd349",
      "fileid": "https://r2.ropensci.org/a40bec1152476b9f2f8750e9626c3f9ff5cda795f0cae68f066ff764b6cbe44f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/resplab/actions/runs/37762028218"
    }
  ]
}