{
  "_id": "6a520b619b92047c28d543c3",
  "Package": "BSCB",
  "Title": "Bayesian Simultaneous Credible Bands for Polynomial Regression",
  "Version": "1.0.0",
  "Authors@R": "person(\"Fei\", \"Yang\", email = \"fei.yang@manchester.ac.uk\",\nrole = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0002-3253-976X\"))",
  "Description": "Provides functions to construct two-sided Bayesian\nsimultaneous credible bands (BSCBs) for the regression curve in\nunivariate polynomial regression over a finite covariate\ninterval. Six methods are implemented, including Normal-Gamma\nconjugate priors (with empirical Bayes, unit-information, and\ng-prior hyperparameter specifications), non-conjugate priors\nfitted via Hamiltonian Monte Carlo (HMC) using 'cmdstanr', and\na non-informative independent Jeffreys prior approach. Also\nincludes functions for computing the empirical simultaneous\ncoverage rate (ESCR) and posterior simultaneous coverage\nprobability (PSCP), enabling performance comparison across\nmethods. The methodology is described in: Yang, F., Han, Y.,\nLiu, W., & Hall, I. (2026). \"Bayesian simultaneous credible\nbands for polynomial regression\"\n<doi:10.48550/arXiv.2606.28015>.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "knitr",
  "Additional_repositories": "https://stan-dev.r-universe.dev",
  "Config/testthat/edition": "3",
  "Date": "2026-07-02",
  "URL": "https://github.com/fannyyang73/BSCB",
  "Config/instantiate/stan-dir": "src/stan",
  "BugReports": "https://github.com/fannyyang73/BSCB/issues",
  "Repository": "https://fannyyang73.r-universe.dev",
  "Date/Publication": "2026-07-11 09:12:09 UTC",
  "RemoteUrl": "https://github.com/fannyyang73/bscb",
  "RemoteRef": "HEAD",
  "RemoteSha": "b9620c75f1adc5485d51b75ca26469fcab1d5caa",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-07-11 09:16:38 UTC",
    "User": "root"
  },
  "Author": "Fei Yang [aut, cre] (ORCID: <https://orcid.org/0000-0002-3253-976X>)",
  "Maintainer": "Fei Yang <fei.yang@manchester.ac.uk>",
  "_user": "fannyyang73",
  "_type": "src",
  "_file": "BSCB_1.0.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/04c0850bba48ead1a3df9671f3e4f5d8c547fe11636b8ac0165828dd79eaebaa",
  "_filesize": 638089,
  "_sha256": "04c0850bba48ead1a3df9671f3e4f5d8c547fe11636b8ac0165828dd79eaebaa",
  "_expires": "2026-10-19T09:22:39.000Z",
  "_created": "2026-07-11T09:16:38.000Z",
  "_published": "2026-07-11T09:22:41.566Z",
  "_jobs": [
    {
      "job": 86531379900,
      "time": 246,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8247209484"
    },
    {
      "job": 86531379888,
      "time": 238,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8247208081"
    },
    {
      "job": 86531379894,
      "time": 241,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8247208647"
    },
    {
      "job": 86531379898,
      "time": 229,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8247206880"
    },
    {
      "job": 86531379889,
      "time": 206,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8247204196"
    },
    {
      "job": 86531379891,
      "time": 273,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8247212767"
    },
    {
      "job": 86531379901,
      "time": 174,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8247200360"
    },
    {
      "job": 86531379904,
      "time": 306,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8247218163"
    },
    {
      "job": 86531090207,
      "time": 252,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8247177942"
    },
    {
      "job": 86531379895,
      "time": 169,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8247198970"
    },
    {
      "job": 86531379910,
      "time": 210,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8247204517"
    },
    {
      "job": 86531379914,
      "time": 213,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8247205091"
    },
    {
      "job": 86531379908,
      "time": 182,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8247200783"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/fannyyang73/actions/runs/29147358863",
  "_status": "success",
  "_upstream": "https://github.com/fannyyang73/bscb",
  "_commit": {
    "id": "b9620c75f1adc5485d51b75ca26469fcab1d5caa",
    "author": "fannyyang73 <969351794@qq.com>",
    "committer": "fannyyang73 <969351794@qq.com>",
    "message": "update CRAN\n",
    "time": 1783761129
  },
  "_maintainer": {
    "name": "Fei Yang",
    "email": "fei.yang@manchester.ac.uk",
    "orcid": "0000-0002-3253-976X"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.0",
      "role": "Depends"
    },
    {
      "package": "mvtnorm",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "OptimalDesign",
      "role": "Imports"
    },
    {
      "package": "instantiate",
      "role": "Imports"
    },
    {
      "package": "posterior",
      "role": "Imports"
    },
    {
      "package": "DEoptim",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "cmdstanr",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    }
  ],
  "_owner": "fannyyang73",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-07",
      "n": 6
    },
    {
      "week": "2026-12",
      "n": 2
    },
    {
      "week": "2026-15",
      "n": 12
    },
    {
      "week": "2026-16",
      "n": 7
    },
    {
      "week": "2026-17",
      "n": 1
    },
    {
      "week": "2026-19",
      "n": 1
    },
    {
      "week": "2026-23",
      "n": 1
    },
    {
      "week": "2026-27",
      "n": 4
    },
    {
      "week": "2026-28",
      "n": 2
    }
  ],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "fannyyang73",
      "count": 36,
      "uuid": 55868628
    }
  ],
  "_userbio": {
    "uuid": 55868628,
    "type": "user",
    "name": "Fei Yang",
    "followers": 0,
    "description": "Ph.D. student in statistics at the University of Manchester. My research interests include simultaneous inference and  high-dimensional statistics."
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/BSCB"
  },
  "_devurl": "https://github.com/fannyyang73/bscb",
  "_searchresults": 5,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/BSCB.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",
    "LICENSE",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/fannyyang73/bscb",
  "_realowner": "fannyyang73",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2026-07-10"
    }
  ],
  "_exports": [
    "compute_bpcb_ind_jeffreys",
    "compute_bscb_conjugate",
    "compute_bscb_hmc",
    "compute_bscb_ind_jeffreys",
    "coverage_ESCR",
    "coverage_PSCP",
    "create_order_form",
    "f_L_SCB",
    "f_U_SCB",
    "find_global_maximum",
    "find_global_maximum_h_all",
    "fn_Bayes_ECR",
    "fn_Bayes_PCP",
    "fn_Freq_ECR",
    "fn_neg_Bayes_ECR",
    "fn_neg_Bayes_PCP",
    "generate_simulation_data",
    "L_SCB",
    "sup_T_Bayes_ESCR",
    "sup_T_Bayes_PSCP",
    "sup_T_Freq_ESCR",
    "sup_T_simFSCB",
    "U_SCB"
  ],
  "_help": [
    {
      "page": "compute_bpcb_ind_jeffreys",
      "title": "BPCB-I-J: the Bayesian pointwise credible band using the independent Jeffreys prior",
      "topics": [
        "compute_bpcb_ind_jeffreys"
      ]
    },
    {
      "page": "compute_bscb_conjugate",
      "title": "BSCB-C: Bayesian Simultaneous Credible Band under the Normal-Gamma Conjugate Prior",
      "topics": [
        "compute_bscb_conjugate"
      ]
    },
    {
      "page": "compute_bscb_hmc",
      "title": "Compute BSCB via Hamiltonian Monte Carlo",
      "topics": [
        "compute_bscb_hmc"
      ]
    },
    {
      "page": "compute_bscb_ind_jeffreys",
      "title": "BSCB-J: Bayesian Simultaneous Credible Band under the Independent Jeffreys Prior",
      "topics": [
        "compute_bscb_ind_jeffreys"
      ]
    },
    {
      "page": "coverage_ESCR",
      "title": "Compute the coverage of BSCB",
      "topics": [
        "coverage_ESCR"
      ]
    },
    {
      "page": "coverage_PSCP",
      "title": "Compute the Posterior Simultaneous Coverage Probability (PSCP)",
      "topics": [
        "coverage_PSCP"
      ]
    },
    {
      "page": "create_order_form",
      "title": "Create a polynomial basis vector function",
      "topics": [
        "create_order_form"
      ]
    },
    {
      "page": "f_L_SCB",
      "title": "Vertical distance from true curve to lower band boundary",
      "topics": [
        "f_L_SCB"
      ]
    },
    {
      "page": "f_U_SCB",
      "title": "Vertical distance from true curve to upper band boundary",
      "topics": [
        "f_U_SCB"
      ]
    },
    {
      "page": "find_global_maximum",
      "title": "Find the global maximum of T(x) via grid search and local optimisation",
      "topics": [
        "find_global_maximum"
      ]
    },
    {
      "page": "find_global_maximum_h_all",
      "title": "Find the global maximum of T(x) analytically via polyroot (Liu's method)",
      "topics": [
        "find_global_maximum_h_all"
      ]
    },
    {
      "page": "fn_Bayes_ECR",
      "title": "T(x) for computing ESCR: uses true parameter theta_true",
      "topics": [
        "fn_Bayes_ECR"
      ]
    },
    {
      "page": "fn_Bayes_PCP",
      "title": "T(x) for computing lambda (PSCP): uses posterior draw theta_hat",
      "topics": [
        "fn_Bayes_PCP"
      ]
    },
    {
      "page": "fn_Freq_ECR",
      "title": "T(x) to compute ESCR for frequentist methods",
      "topics": [
        "fn_Freq_ECR"
      ]
    },
    {
      "page": "fn_neg_Bayes_ECR",
      "title": "T(x) for computing ESCR for DEoptim: uses true parameter theta_true",
      "topics": [
        "fn_neg_Bayes_ECR"
      ]
    },
    {
      "page": "fn_neg_Bayes_PCP",
      "title": "Negative T(x) for minimisation-based optimisers (e.g. DEoptim)",
      "topics": [
        "fn_neg_Bayes_PCP"
      ]
    },
    {
      "page": "generate_simulation_data",
      "title": "Generate simulation datasets for polynomial regression",
      "topics": [
        "generate_simulation_data"
      ]
    },
    {
      "page": "L_SCB",
      "title": "Evaluate lower band at x",
      "topics": [
        "L_SCB"
      ]
    },
    {
      "page": "sup_T_Bayes_ESCR",
      "title": "To compute ESCR for BSCB and BPCB For BSCB use 'cov_mat = cov_theta'; for BPCB use 'cov_mat = scale_mat'.",
      "topics": [
        "sup_T_Bayes_ESCR"
      ]
    },
    {
      "page": "sup_T_Bayes_PSCP",
      "title": "To compute the critical constant for BSCB and BPCB; To compute PSCP for BSCB and BPCB",
      "topics": [
        "sup_T_Bayes_PSCP"
      ]
    },
    {
      "page": "sup_T_Freq_ESCR",
      "title": "To compute the ESCR for FSCB and FPCB",
      "topics": [
        "sup_T_Freq_ESCR"
      ]
    },
    {
      "page": "sup_T_simFSCB",
      "title": "To compute the critical constant for simFSCB",
      "topics": [
        "sup_T_simFSCB"
      ]
    },
    {
      "page": "U_SCB",
      "title": "Evaluate upper band at x",
      "topics": [
        "U_SCB"
      ]
    }
  ],
  "_readme": "https://github.com/fannyyang73/bscb/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "backports",
    "base64enc",
    "bslib",
    "cachem",
    "callr",
    "checkmate",
    "cli",
    "digest",
    "distributional",
    "evaluate",
    "fastmap",
    "fontawesome",
    "fs",
    "generics",
    "glue",
    "highr",
    "htmltools",
    "htmlwidgets",
    "instantiate",
    "jquerylib",
    "jsonlite",
    "knitr",
    "lattice",
    "lifecycle",
    "lpSolve",
    "magrittr",
    "MASS",
    "Matrix",
    "matrixcalc",
    "matrixStats",
    "memoise",
    "mime",
    "mvtnorm",
    "numDeriv",
    "OptimalDesign",
    "otel",
    "pillar",
    "pkgconfig",
    "plyr",
    "posterior",
    "processx",
    "ps",
    "quadprog",
    "R6",
    "rappdirs",
    "Rcpp",
    "rgl",
    "rlang",
    "rmarkdown",
    "sass",
    "tensorA",
    "tibble",
    "tinytex",
    "utf8",
    "vctrs",
    "xfun",
    "yaml"
  ],
  "_vignettes": [
    {
      "source": "BSCB-vignette.Rmd",
      "filename": "BSCB-vignette.html",
      "title": "BSCB-vignette",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Bayesian simultaneous credible bands for the polynomial model",
        "Overview",
        "1. Simulate Data",
        "2. Construct the Bands",
        "BSCB-C: BSCB under the Normal-Gamma conjugate prior",
        "BSCB-I-J: BSCB under the independent Jeffreys prior",
        "BSCB-H-C: BSCB under the normal-half-Cauchy prior(0,2) implemented via HMC",
        "BPCB-I-J: BPCB under the independent Jeffreys prior",
        "3. Evaluate Bands over a Grid and Plot",
        "4. Evaluate Coverage",
        "Empirical Simultaneous Coverage Rate (ESCR)",
        "Posterior Simultaneous Coverage Probability (PSCP)",
        "Summary Table"
      ],
      "created": "2026-04-15 15:15:19",
      "modified": "2026-04-16 11:04:11",
      "commits": 2
    }
  ],
  "_score": 4.653212513775344,
  "_indexed": true,
  "_nocasepkg": "bscb",
  "_universes": [
    "fannyyang73"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-07-11T09:19:44.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "b9620c75f1adc5485d51b75ca26469fcab1d5caa",
      "fileid": "https://r2.ropensci.org/a81c2894b3848399ffe973e68b7fc88f3e9d340db4046bfd9052f354ffa8b098",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fannyyang73/actions/runs/29147358863"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-07-11T09:19:21.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "b9620c75f1adc5485d51b75ca26469fcab1d5caa",
      "fileid": "https://r2.ropensci.org/8ad2ba99fe6afb4b0058974f73fc83e74f60c4930f3a8af158423df8fba31417",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fannyyang73/actions/runs/29147358863"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-07-11T09:19:38.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "b9620c75f1adc5485d51b75ca26469fcab1d5caa",
      "fileid": "https://r2.ropensci.org/6f89248e4349beec3803aec1e9a575c3aa3788cc17eeb67f4b51f024f3e9fc06",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fannyyang73/actions/runs/29147358863"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-07-11T09:19:14.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "b9620c75f1adc5485d51b75ca26469fcab1d5caa",
      "fileid": "https://r2.ropensci.org/2b13355dee6d94b00fcf78a2583fbef62da2682ebc5002a18b352b123f00e132",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fannyyang73/actions/runs/29147358863"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-07-11T09:19:01.000Z",
      "arch": "aarch64",
      "commit": "b9620c75f1adc5485d51b75ca26469fcab1d5caa",
      "fileid": "https://r2.ropensci.org/7ece6737fc88093766f0336fb85e9c84595e95e685d10a35b03405eb75afc8aa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fannyyang73/actions/runs/29147358863"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-07-11T09:19:44.000Z",
      "arch": "x86_64",
      "commit": "b9620c75f1adc5485d51b75ca26469fcab1d5caa",
      "fileid": "https://r2.ropensci.org/8388a5c875f2362e379d18742d7bfad8d8a3aa4edc132b1222712940ce01a40a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fannyyang73/actions/runs/29147358863"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-07-11T09:18:43.000Z",
      "arch": "aarch64",
      "commit": "b9620c75f1adc5485d51b75ca26469fcab1d5caa",
      "fileid": "https://r2.ropensci.org/a6cfff0f66037e5bf539150f06f7a1c88662c1de5dafc7a902afb45b15377cb6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fannyyang73/actions/runs/29147358863"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-07-11T09:20:25.000Z",
      "arch": "x86_64",
      "commit": "b9620c75f1adc5485d51b75ca26469fcab1d5caa",
      "fileid": "https://r2.ropensci.org/86af3c079bd2259d1f59c9dedeb1e2d3d2389dcbc3199a797bc96c2f4ef48ae3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fannyyang73/actions/runs/29147358863"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0",
      "date": "2026-07-11T09:19:48.000Z",
      "arch": "emscripten",
      "commit": "b9620c75f1adc5485d51b75ca26469fcab1d5caa",
      "fileid": "https://r2.ropensci.org/d6af093734fe573d1078328aef03a17a7f63a2dce5f4d6d2204d76ecf7bb38c7",
      "status": "success",
      "buildurl": "https://github.com/r-universe/fannyyang73/actions/runs/29147358863"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-07-11T09:18:34.000Z",
      "arch": "x86_64",
      "commit": "b9620c75f1adc5485d51b75ca26469fcab1d5caa",
      "fileid": "https://r2.ropensci.org/7bbded32a34b33b675252ee49bff51914e29c816ac01d1ee3b29c94d094c2181",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fannyyang73/actions/runs/29147358863"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-07-11T09:18:39.000Z",
      "arch": "x86_64",
      "commit": "b9620c75f1adc5485d51b75ca26469fcab1d5caa",
      "fileid": "https://r2.ropensci.org/6f02cd0d00419ef88a24a40e7b41e0124cdc10cecc06bd559c91e2af1487650b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fannyyang73/actions/runs/29147358863"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-07-11T09:18:05.000Z",
      "arch": "x86_64",
      "commit": "b9620c75f1adc5485d51b75ca26469fcab1d5caa",
      "fileid": "https://r2.ropensci.org/6de53d6bf65138b3c36e71209654c99c7bd9aab5ed910ecd4ffa2c4080c1b527",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fannyyang73/actions/runs/29147358863"
    }
  ]
}