Package: SAMprior 3.0.0

Peng Yang

SAMprior: Self-Adapting Mixture (SAM) Priors

Implementation of the SAM prior and generation of its operating characteristics for dynamically borrowing information from historical data. For details, please refer to Yang et al. (2023) <doi:10.1111/biom.13927>.

Authors:Peng Yang [aut, cre], Ying Yuan [aut]

SAMprior_3.0.0.tar.gz
SAMprior_3.0.0.zip(r-4.7)SAMprior_3.0.0.zip(r-4.6)SAMprior_3.0.0.zip(r-4.5)
SAMprior_3.0.0.tgz(r-4.6-any)SAMprior_3.0.0.tgz(r-4.5-any)
SAMprior_3.0.0.tar.gz(r-4.7-any)SAMprior_3.0.0.tar.gz(r-4.6-any)
SAMprior_3.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
SAMprior/json (API)
NEWS

# Install 'SAMprior' in R:
install.packages('SAMprior', repos = c('https://pengyang0411.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/pengyang0411/samprior/issues

Datasets:
  • PS_SAM_data - Simulated Data for the Construction of Propensity Score-Integrated Informative Priors

On CRAN:

Conda:

4.65 score 3 stars 15 scripts 514 downloads 16 exports 66 dependencies

Last updated from:903e2e3b7b. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK249
source / vignettesOK481
linux-release-x86_64OK240
macos-release-arm64OK186
macos-oldrel-arm64OK267
windows-develOK219
windows-releaseOK188
windows-oldrelOK190
wasm-releaseOK172

Exports:calibrate_cutoff_2armcalibrate_cutoff_bin_2armcalibrate_cutoff_cont_2armeval_oc_bin_2armeval_oc_cont_2armeval_scenario_bin_2armeval_scenario_cont_2armget_OCpost_summary_bin_2armpost_summary_cont_2armPS_priorPS_prior.betaPS_prior.defaultPS_prior.normSAM_priorSAM_weight

Dependencies:abindassertthatbackportsbayesplotBHcallrcheckmatechkclicpp11descdistributionaldplyrfarverFormulagenericsggplot2ggridgesgluegridExtragtableinlineisobandjsonlitelabelinglifecycleloomagrittrMatchItmatrixStatsMetricsmvtnormnumDerivpillarpkgbuildpkgconfigplyrposteriorprocessxpspurrrQuickJSRR6RBesTRColorBrewerRcppRcppEigenRcppParallelRcppProgressreshape2rlangrstanrstantoolsS7scalesStanHeadersstringistringrtensorAtibbletidyrtidyselectutf8vctrsviridisLitewithr

SAMprior for Binary Endpoints

Rendered fromExample_binary.Rmdusingknitr::rmarkdownon May 27 2026.

Last update: 2026-04-27
Started: 2023-08-02

SAMprior for Continuous Endpoints

Rendered fromExample_continuous.Rmdusingknitr::rmarkdownon May 27 2026.

Last update: 2026-04-27
Started: 2023-08-02