Package: SAMprior 2.0.0

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_2.0.0.tar.gz
SAMprior_2.0.0.zip(r-4.5)SAMprior_2.0.0.zip(r-4.4)SAMprior_2.0.0.zip(r-4.3)
SAMprior_2.0.0.tgz(r-4.5-any)SAMprior_2.0.0.tgz(r-4.4-any)SAMprior_2.0.0.tgz(r-4.3-any)
SAMprior_2.0.0.tar.gz(r-4.5-noble)SAMprior_2.0.0.tar.gz(r-4.4-noble)
SAMprior_2.0.0.tgz(r-4.4-emscripten)SAMprior_2.0.0.tgz(r-4.3-emscripten)
SAMprior.pdf |SAMprior.html
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:

4.30 score 5 scripts 348 downloads 7 exports 69 dependencies

Last updated 1 months agofrom:34cee5cd1b. Checks:8 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKFeb 16 2025
R-4.5-winOKFeb 16 2025
R-4.5-macOKFeb 16 2025
R-4.5-linuxOKFeb 16 2025
R-4.4-winOKFeb 16 2025
R-4.4-macOKFeb 16 2025
R-4.3-winOKFeb 16 2025
R-4.3-macOKFeb 16 2025

Exports:get_OCPS_priorPS_prior.betaPS_prior.defaultPS_prior.normSAM_priorSAM_weight

Dependencies:abindassertthatbackportsbayesplotBHcallrcheckmatechkclicolorspacedescdistributionaldplyrfansifarverFormulagenericsggplot2ggridgesgluegridExtragtableinlineisobandlabelinglatticelifecycleloomagrittrMASSMatchItMatrixmatrixStatsMetricsmgcvmunsellmvtnormnlmenumDerivpillarpkgbuildpkgconfigplyrposteriorprocessxpsQuickJSRR6RBesTRColorBrewerRcppRcppEigenRcppParallelRcppProgressreshape2rlangrstanrstantoolsscalesStanHeadersstringistringrtensorAtibbletidyselectutf8vctrsviridisLitewithr

SAMprior for Binary Endpoints

Rendered fromExample_binary.Rmdusingknitr::rmarkdownon Feb 16 2025.

Last update: 2023-09-30
Started: 2023-08-02

SAMprior for Continuous Endpoints

Rendered fromExample_continuous.Rmdusingknitr::rmarkdownon Feb 16 2025.

Last update: 2023-09-30
Started: 2023-08-02

Readme and manuals

Help Manual

Help pageTopics
Generating Operating Characteristics of SAM Priorsget_OC get_OC.betaMix get_OC.normMix
Calculating the Propensity Score-Integrated Informative PriorsPS_prior PS_prior.beta PS_prior.default PS_prior.norm
Simulated Data for the Construction of Propensity Score-Integrated Informative PriorsPS_SAM_data
Calculating SAM priorsSAM_prior SAM_prior.betaMix SAM_prior.gammaMix SAM_prior.normMix
Calculating Mixture Weight of SAM PriorsSAM_weight SAM_weight.betaMix SAM_weight.gammaMix SAM_weight.normMix