{
  "_id": "6abe2a7299f7aa8c6aa53198",
  "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": "cmake 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-10-01 09:34:55 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>)",
  "_user": "pengyang0411",
  "_type": "src",
  "_file": "SAMprior_3.0.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/9d77e6699e5a4c8f84c9b8837e76e38b759a5aa0eb6c9dc0a20e2e81e84a09d3",
  "_filesize": 582924,
  "_sha256": "9d77e6699e5a4c8f84c9b8837e76e38b759a5aa0eb6c9dc0a20e2e81e84a09d3",
  "_expires": "2027-01-09T09:39:59.000Z",
  "_created": "2026-10-01T09:34:55.000Z",
  "_published": "2026-10-01T09:40:02.438Z",
  "_jobs": [
    {
      "job": 110308669014,
      "time": 229,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11152837397"
    },
    {
      "job": 110308669086,
      "time": 209,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11152916698"
    },
    {
      "job": 110308668979,
      "time": 246,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11153065241"
    },
    {
      "job": 110308669133,
      "time": 217,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11152936639"
    },
    {
      "job": 110306029016,
      "time": 431,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11152401557"
    },
    {
      "job": 110308669022,
      "time": 207,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11152951694"
    },
    {
      "job": 110308669113,
      "time": 177,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11153050316"
    },
    {
      "job": 110308669099,
      "time": 156,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11152042287"
    },
    {
      "job": 110308669209,
      "time": 153,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11153040282"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/pengyang0411/actions/runs/36842880651",
  "_status": "success",
  "_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"
  },
  "_distro": "resolute",
  "_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",
    "followers": 9
  },
  "_downloads": {
    "count": 389,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/SAMprior"
  },
  "_devurl": "https://github.com/pengyang0411/samprior",
  "_searchresults": 17,
  "_rbuild": "4.6.1",
  "_assets": [
    "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",
    "extra/SAMprior.html"
  ],
  "_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",
    "arg",
    "assertthat",
    "backports",
    "bayesplot",
    "BH",
    "callr",
    "checkmate",
    "cli",
    "cpp11",
    "desc",
    "distributional",
    "dplyr",
    "farver",
    "Formula",
    "generics",
    "ggdist",
    "ggplot2",
    "ggridges",
    "glue",
    "gridExtra",
    "gtable",
    "inline",
    "isoband",
    "jsonlite",
    "labeling",
    "lifecycle",
    "loo",
    "magrittr",
    "MatchIt",
    "matrixStats",
    "Metrics",
    "mvtnorm",
    "numDeriv",
    "otel",
    "pillar",
    "pkgbuild",
    "pkgconfig",
    "plyr",
    "posterior",
    "processx",
    "ps",
    "purrr",
    "quadprog",
    "QuickJSR",
    "R6",
    "RBesT",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppEigen",
    "RcppParallel",
    "RcppProgress",
    "Rdpack",
    "reshape2",
    "rlang",
    "rstan",
    "rstantools",
    "S7",
    "scales",
    "StanHeaders",
    "statmod",
    "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.707570176097937,
  "_indexed": true,
  "_nocasepkg": "samprior",
  "_universes": [
    "pengyang0411"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "3.0.0",
      "date": "2026-10-01T09:38:02.000Z",
      "distro": "resolute",
      "commit": "903e2e3b7b16c1eefc6a7e3e5a2cb526d67e820c",
      "fileid": "https://r2.ropensci.org/12568e7b648076bfae4dece64b9f6dc26fc0f6382f6dda0edd27cf6b41036ae1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pengyang0411/actions/runs/36842880651"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "3.0.0",
      "date": "2026-10-01T09:37:54.000Z",
      "distro": "resolute",
      "commit": "903e2e3b7b16c1eefc6a7e3e5a2cb526d67e820c",
      "fileid": "https://r2.ropensci.org/778d2b7f3ae78019b981e7cf70035f3c6b62bb1dccd1e67f4c2c397240b54f70",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pengyang0411/actions/runs/36842880651"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "3.0.0",
      "date": "2026-10-01T09:37:55.000Z",
      "commit": "903e2e3b7b16c1eefc6a7e3e5a2cb526d67e820c",
      "fileid": "https://r2.ropensci.org/4d4236aa31750f766d52506e2648cf3343e012d54e3c9da07a39490cae78144a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pengyang0411/actions/runs/36842880651"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "3.0.0",
      "date": "2026-10-01T09:37:28.000Z",
      "commit": "903e2e3b7b16c1eefc6a7e3e5a2cb526d67e820c",
      "fileid": "https://r2.ropensci.org/38064ad98b0e3404f6d6f4c2a1347dce9ea3535c892d9d6066a4b516f5f366ec",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pengyang0411/actions/runs/36842880651"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "3.0.0",
      "date": "2026-10-01T09:38:44.000Z",
      "commit": "903e2e3b7b16c1eefc6a7e3e5a2cb526d67e820c",
      "fileid": "https://r2.ropensci.org/83d2f5338b096d4c68411578d0871e0894b589871f1064f5fa94a09d3fdb8264",
      "status": "success",
      "buildurl": "https://github.com/r-universe/pengyang0411/actions/runs/36842880651"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "3.0.0",
      "date": "2026-10-01T09:37:12.000Z",
      "commit": "903e2e3b7b16c1eefc6a7e3e5a2cb526d67e820c",
      "fileid": "https://r2.ropensci.org/3f69d47b717599fb4ea53c63e6ec5ccab2daaca54a32f58eab0d7abb5708186a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pengyang0411/actions/runs/36842880651"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "3.0.0",
      "date": "2026-10-01T09:36:42.000Z",
      "commit": "903e2e3b7b16c1eefc6a7e3e5a2cb526d67e820c",
      "fileid": "https://r2.ropensci.org/3d234510b01ecedbc81a31ddf5579e347ff17429d4518b1e904ba84facc7f0f8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pengyang0411/actions/runs/36842880651"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "3.0.0",
      "date": "2026-10-01T09:36:36.000Z",
      "commit": "903e2e3b7b16c1eefc6a7e3e5a2cb526d67e820c",
      "fileid": "https://r2.ropensci.org/837ea39b0408d929d610c48f1ab945bcda6baf0fa205191d1b3d960d9a8e86b6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pengyang0411/actions/runs/36842880651"
    }
  ]
}