Skip to content

SAMprior

3.0.0Package record

Self-Adapting Mixture (SAM) Priors

0packages depend
3.4Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

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.

Changes in 3.0.0
  • Rebuilt get_OC() using analytical engines for two-arm comparative trials with binary and continuous endpoints, removing reliance on trial simulation.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 16.0 min · r-release-macos-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-07-29
  • ERROR12 OK, 1 ERROR2026-07-27
  • OK13 OK2026-06-09
Show 4 earlier changesHide 4 earlier changes
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK14 OK2026-04-10
  • ERROR13 OK, 1 ERROR2026-04-09
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 3.0.0
READMENoVignettesYes · 2 · dynamicNEWSYes · 100% structured · mentions 3.0.0Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
15 (1 internal)
Examples that run
100%6 run in a plain check
Exported functions with examples
38%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
27%

Downloads

3.4K
CRAN downloads in the past year
Rank #11,442 · ~9/day · ~284/mo
Daily download trend is not available in this view yet.
34330 days
93390 days
3.4K1 year
Compare downloads with other packages →
Also on82 r2u3 autocran

Dependencies

Declared dependencies
15 external dependencies (excludes base and recommended)

Installing SAMprior adds 72 packages (37 with compiled code, 72 MB of source tarballs). Heaviest: BH 14 MB, stringi 11 MB, ggplot2 6.0 MB.

Depends (3)
R >= 3.5.0RBesTMatchIt
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (2)
Author, Maintainer since 1.0.0 (2023)
Author
Releases (5)

Pick two releases to compare their code metrics.

  • 3.0.0Latest
    record
    2026-04-27 · current release · diff ↗ ·
    added 9 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, post_summary_bin_2arm, post_summary_cont_2arm
  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 2.0.0
    record
    2025-01-17 · diff ↗ ·
    added 4 exports
    PS_prior, PS_prior.beta, PS_prior.default, PS_prior.norm
  • R
    R 4.4.0 released · 2024-04-24
  • 1.1.1
    record
    2023-09-27 · diff ↗
  • 1.1.0
    record
    2023-09-06 · diff ↗
  • 1.0.0
    record
    2023-08-15
  • R
    R 4.3.0 released · 2023-04-21

Package metadata

First published
2023-08-15
Total releases
5 / 3 yrs
License
GPL (>= 3) OSI
Minimum R
≥ 3.5.0
Bundled data
14 KB / 1 file
Download size
235 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("SAMprior")
Yang, P., & Yuan, Y. (2026). SAMprior: Self-Adapting Mixture (SAM) Priors (Version 3.0.0) [Computer software]. https://doi.org/10.32614/CRAN.package.SAMprior

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for SAMprior version 3.0.0 [Data set]. HJJB, LLC. Data release v2026-10-21. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy