{
  "_id": "6a168fddacfb0bcc41d782dd",
  "Package": "SAMprior",
  "Type": "Package",
  "Title": "Self-Adapting Mixture (SAM) Priors",
  "Version": "3.0.0",
  "Authors@R": "c(person(given = \"Peng\", family = \"Yang\", email = \"pyang7@mdanderson.org\", \nrole = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0002-0630-9506\")),\nperson(given = \"Ying\", family = \"Yuan\", email = \"yyuan@mdanderson.org\",\nrole = \"aut\",\ncomment = c(ORCID = \"0000-0003-3163-480X\")))",
  "Maintainer": "Peng Yang <pyang7@mdanderson.org>",
  "Description": "Implementation of the SAM prior and generation of its\noperating characteristics for dynamically borrowing information\nfrom historical data. For details, please refer to Yang et al.\n(2023) <doi:10.1111/biom.13927>.",
  "VignetteBuilder": "knitr",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.3.3",
  "Config/pak/sysreqs": "make libicu-dev",
  "Repository": "https://pengyang0411.r-universe.dev",
  "Date/Publication": "2026-04-27 21:08:16 UTC",
  "RemoteUrl": "https://github.com/pengyang0411/samprior",
  "RemoteRef": "HEAD",
  "RemoteSha": "903e2e3b7b16c1eefc6a7e3e5a2cb526d67e820c",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-27 06:26:49 UTC",
    "User": "root"
  },
  "Author": "Peng Yang [aut, cre] (ORCID: <https://orcid.org/0000-0002-0630-9506>),\nYing Yuan [aut] (ORCID: <https://orcid.org/0000-0003-3163-480X>)",
  "MD5sum": "3b16026a93574becc051d76659dc090a",
  "_user": "pengyang0411",
  "_type": "src",
  "_file": "SAMprior_3.0.0.tar.gz",
  "_fileid": "77fe56fe2997e9500f4ba6f0cdeeeed6555abf189eade6eef9ef1caa1b060e6e",
  "_filesize": 590222,
  "_sha256": "77fe56fe2997e9500f4ba6f0cdeeeed6555abf189eade6eef9ef1caa1b060e6e",
  "_created": "2026-05-27T06:26:49.000Z",
  "_published": "2026-05-27T06:31:57.598Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78020171234,
      "time": 249,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7233444094"
    },
    {
      "job": 78020171220,
      "time": 240,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7233442148"
    },
    {
      "job": 78020171206,
      "time": 267,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7233437774"
    },
    {
      "job": 78020171211,
      "time": 186,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7233423207"
    },
    {
      "job": 78019174562,
      "time": 481,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7233382829"
    },
    {
      "job": 78020171231,
      "time": 172,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7233424579"
    },
    {
      "job": 78020171271,
      "time": 219,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7233436878"
    },
    {
      "job": 78020171272,
      "time": 190,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7233429203"
    },
    {
      "job": 78020171253,
      "time": 188,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7233428562"
    }
  ],
  "_buildurl": "https://github.com/r-universe/pengyang0411/actions/runs/26494427992",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/pengyang0411/samprior",
  "_commit": {
    "id": "903e2e3b7b16c1eefc6a7e3e5a2cb526d67e820c",
    "author": "Peng (Jason) Yang <pengyang0411@gmail.com>",
    "committer": "Peng (Jason) Yang <pengyang0411@gmail.com>",
    "message": "Update README.Rmd\n",
    "time": 1777324096
  },
  "_maintainer": {
    "name": "Peng Yang",
    "email": "pyang7@mdanderson.org",
    "orcid": "0000-0002-0630-9506"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "RBesT",
      "role": "Depends"
    },
    {
      "package": "MatchIt",
      "role": "Depends"
    },
    {
      "package": "Metrics",
      "role": "Imports"
    },
    {
      "package": "assertthat",
      "role": "Imports"
    },
    {
      "package": "checkmate",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 2.0.0",
      "role": "Suggests"
    },
    {
      "package": "foreach",
      "role": "Suggests"
    },
    {
      "package": "purrr",
      "role": "Suggests"
    },
    {
      "package": "rstanarm",
      "version": ">= 2.17.2",
      "role": "Suggests"
    },
    {
      "package": "scales",
      "role": "Suggests"
    },
    {
      "package": "tools",
      "role": "Suggests"
    },
    {
      "package": "broom",
      "role": "Suggests"
    },
    {
      "package": "tidyr",
      "role": "Suggests"
    },
    {
      "package": "parallel",
      "role": "Suggests"
    }
  ],
  "_owner": "pengyang0411",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-18",
      "n": 7
    }
  ],
  "_tags": [],
  "_stars": 3,
  "_contributors": [
    {
      "user": "pengyang0411",
      "count": 38,
      "uuid": 57335942
    }
  ],
  "_userbio": {
    "uuid": 57335942,
    "type": "user",
    "name": "Peng (Jason) Yang"
  },
  "_downloads": {
    "count": 514,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/SAMprior"
  },
  "_devurl": "https://github.com/pengyang0411/samprior",
  "_searchresults": 15,
  "_rbuild": "4.6.0",
  "_assets": [
    "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",
    "extra/SAMprior.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/pengyang0411/samprior",
  "_realowner": "pengyang0411",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2023-08-15"
    },
    {
      "version": "1.1.0",
      "date": "2023-09-07"
    },
    {
      "version": "1.1.1",
      "date": "2023-09-27"
    },
    {
      "version": "2.0.0",
      "date": "2025-01-17"
    },
    {
      "version": "3.0.0",
      "date": "2026-04-27"
    }
  ],
  "_exports": [
    "calibrate_cutoff_2arm",
    "calibrate_cutoff_bin_2arm",
    "calibrate_cutoff_cont_2arm",
    "eval_oc_bin_2arm",
    "eval_oc_cont_2arm",
    "eval_scenario_bin_2arm",
    "eval_scenario_cont_2arm",
    "get_OC",
    "post_summary_bin_2arm",
    "post_summary_cont_2arm",
    "PS_prior",
    "PS_prior.beta",
    "PS_prior.default",
    "PS_prior.norm",
    "SAM_prior",
    "SAM_weight"
  ],
  "_datasets": [
    {
      "name": "PS_SAM_data",
      "title": "Simulated Data for the Construction of Propensity Score-Integrated Informative Priors",
      "object": "PS_SAM_data",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Y_binary",
        "Y_continuous",
        "X_1",
        "X_2",
        "X_3",
        "A",
        "G"
      ],
      "rows": 600,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "calibrate_cutoff_2arm",
      "title": "Calibrate Posterior Probability Cutoff for a Two-Arm Comparative Trial",
      "topics": [
        "calibrate_cutoff_2arm",
        "calibrate_cutoff_2arm.betaMix",
        "calibrate_cutoff_2arm.normMix"
      ]
    },
    {
      "page": "calibrate_cutoff_bin_2arm",
      "title": "Calibrate Posterior Probability Cutoff for a Two-Arm Comparative Trial with Binary Endpoint",
      "topics": [
        "calibrate_cutoff_bin_2arm"
      ]
    },
    {
      "page": "calibrate_cutoff_cont_2arm",
      "title": "Calibrate Posterior Probability Cutoff for a Two-Arm Comparative Trial with Continuous Endpoint",
      "topics": [
        "calibrate_cutoff_cont_2arm"
      ]
    },
    {
      "page": "eval_oc_bin_2arm",
      "title": "Evaluate Multiple Scenarios for a Two-Arm Comparative Trial with Binary Endpoint",
      "topics": [
        "eval_oc_bin_2arm"
      ]
    },
    {
      "page": "eval_oc_cont_2arm",
      "title": "Evaluate Multiple Scenarios for a Two-Arm Comparative Trial with Continuous Endpoint",
      "topics": [
        "eval_oc_cont_2arm"
      ]
    },
    {
      "page": "eval_scenario_bin_2arm",
      "title": "Evaluate One Scenario for a Two-Arm Comparative Trial with Binary Endpoint",
      "topics": [
        "eval_scenario_bin_2arm"
      ]
    },
    {
      "page": "eval_scenario_cont_2arm",
      "title": "Evaluate One Scenario for a Two-Arm Comparative Trial with Continuous Endpoint",
      "topics": [
        "eval_scenario_cont_2arm"
      ]
    },
    {
      "page": "get_OC",
      "title": "Generating Operating Characteristics of SAM Priors Using Analytical Engines",
      "topics": [
        "get_OC"
      ]
    },
    {
      "page": "post_summary_bin_2arm",
      "title": "Posterior Summary for Two-Arm Comparative Trial with Binary Endpoint",
      "topics": [
        "post_summary_bin_2arm"
      ]
    },
    {
      "page": "post_summary_cont_2arm",
      "title": "Posterior Summary for Two-Arm Comparative Trial with Continuous Endpoint",
      "topics": [
        "post_summary_cont_2arm"
      ]
    },
    {
      "page": "PS_prior",
      "title": "Calculating the Propensity Score-Integrated Informative Priors",
      "topics": [
        "PS_prior",
        "PS_prior.beta",
        "PS_prior.default",
        "PS_prior.norm"
      ]
    },
    {
      "page": "PS_SAM_data",
      "title": "Simulated Data for the Construction of Propensity Score-Integrated Informative Priors",
      "topics": [
        "PS_SAM_data"
      ]
    },
    {
      "page": "SAM_prior",
      "title": "Calculating SAM priors",
      "topics": [
        "SAM_prior",
        "SAM_prior.betaMix",
        "SAM_prior.gammaMix",
        "SAM_prior.normMix"
      ]
    },
    {
      "page": "SAM_weight",
      "title": "Calculating Mixture Weight of SAM Priors",
      "topics": [
        "SAM_weight",
        "SAM_weight.betaMix",
        "SAM_weight.gammaMix",
        "SAM_weight.normMix"
      ]
    }
  ],
  "_readme": "https://github.com/pengyang0411/samprior/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "assertthat",
    "backports",
    "bayesplot",
    "BH",
    "callr",
    "checkmate",
    "chk",
    "cli",
    "cpp11",
    "desc",
    "distributional",
    "dplyr",
    "farver",
    "Formula",
    "generics",
    "ggplot2",
    "ggridges",
    "glue",
    "gridExtra",
    "gtable",
    "inline",
    "isoband",
    "jsonlite",
    "labeling",
    "lifecycle",
    "loo",
    "magrittr",
    "MatchIt",
    "matrixStats",
    "Metrics",
    "mvtnorm",
    "numDeriv",
    "pillar",
    "pkgbuild",
    "pkgconfig",
    "plyr",
    "posterior",
    "processx",
    "ps",
    "purrr",
    "QuickJSR",
    "R6",
    "RBesT",
    "RColorBrewer",
    "Rcpp",
    "RcppEigen",
    "RcppParallel",
    "RcppProgress",
    "reshape2",
    "rlang",
    "rstan",
    "rstantools",
    "S7",
    "scales",
    "StanHeaders",
    "stringi",
    "stringr",
    "tensorA",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "Example_binary.Rmd",
      "filename": "Example_binary.html",
      "title": "SAMprior for Binary Endpoints",
      "author": "Peng Yang and Ying Yuan",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "SAM Prior Derivation",
        "Informative Prior Construction based on Historical Data",
        "SAM Weight Determination",
        "SAM Prior Construction",
        "Operating Characteristics",
        "Type I Error",
        "Power",
        "Decision Making",
        "References",
        "R Session Info"
      ],
      "created": "2023-08-02 18:12:20",
      "modified": "2026-04-27 20:56:20",
      "commits": 3
    },
    {
      "source": "Example_continuous.Rmd",
      "filename": "Example_continuous.html",
      "title": "SAMprior for Continuous Endpoints",
      "author": "Peng Yang and Ying Yuan",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "SAM Prior Derivation",
        "Informative Prior Construction based on Historical Data",
        "SAM Weight Determination",
        "SAM Prior Construction",
        "Operating Characteristics",
        "Type I Error",
        "Power",
        "Decision Making",
        "References",
        "R Session Info"
      ],
      "created": "2023-08-02 18:12:20",
      "modified": "2026-04-27 20:56:20",
      "commits": 3
    }
  ],
  "_score": 4.653212513775344,
  "_indexed": true,
  "_nocasepkg": "samprior",
  "_universes": [
    "pengyang0411"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "3.0.0",
      "date": "2026-05-27T06:29:56.000Z",
      "distro": "noble",
      "commit": "903e2e3b7b16c1eefc6a7e3e5a2cb526d67e820c",
      "fileid": "609b680929bdc14467843ea5c8b856cd2a17132fd71d46c37b26eed32137b93e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pengyang0411/actions/runs/26494427992"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "3.0.0",
      "date": "2026-05-27T06:29:49.000Z",
      "distro": "noble",
      "commit": "903e2e3b7b16c1eefc6a7e3e5a2cb526d67e820c",
      "fileid": "b26d3a0522ab5e17b6fbde9120a3e38e71802aead5c3f8c9535cc999ee7908c7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pengyang0411/actions/runs/26494427992"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "3.0.0",
      "date": "2026-05-27T06:29:56.000Z",
      "commit": "903e2e3b7b16c1eefc6a7e3e5a2cb526d67e820c",
      "fileid": "06759c07976d2d6513cc32a6c7b7c9f03c9699b025308def55f3a9147bae3b48",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pengyang0411/actions/runs/26494427992"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "3.0.0",
      "date": "2026-05-27T06:29:03.000Z",
      "commit": "903e2e3b7b16c1eefc6a7e3e5a2cb526d67e820c",
      "fileid": "cd0b6714115a597ceb5d72a93df22840b09aab94d73ea3d8c7f3722276e542fc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pengyang0411/actions/runs/26494427992"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "3.0.0",
      "date": "2026-05-27T06:30:04.000Z",
      "commit": "903e2e3b7b16c1eefc6a7e3e5a2cb526d67e820c",
      "fileid": "cc8edf7c5352b317bce3424f6cde233f40953c1db96d804b028943db654a0024",
      "status": "success",
      "buildurl": "https://github.com/r-universe/pengyang0411/actions/runs/26494427992"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "3.0.0",
      "date": "2026-05-27T06:29:28.000Z",
      "commit": "903e2e3b7b16c1eefc6a7e3e5a2cb526d67e820c",
      "fileid": "849873852693d3132a5ab704019b7ee98b4191de722f13b6ae37223e4201bc72",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pengyang0411/actions/runs/26494427992"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "3.0.0",
      "date": "2026-05-27T06:28:37.000Z",
      "commit": "903e2e3b7b16c1eefc6a7e3e5a2cb526d67e820c",
      "fileid": "756a3dbc6699aba6fedd90c42c0a838fd40ca54dd422e7522ac26a31e3f7b6c3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pengyang0411/actions/runs/26494427992"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "3.0.0",
      "date": "2026-05-27T06:28:36.000Z",
      "commit": "903e2e3b7b16c1eefc6a7e3e5a2cb526d67e820c",
      "fileid": "07d5c832e7c83c2808101845e9fc21acf100ea8096d5f0dd2b14913c007c293c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pengyang0411/actions/runs/26494427992"
    }
  ]
}