Skip to content

psborrow2

Bayesian Dynamic Borrowing Analysis and Simulation

v0.0.4.0 · Feb 12, 2025 · Apache License 2.0

Description

Bayesian dynamic borrowing is an approach to incorporating external data to supplement a randomized, controlled trial analysis in which external data are incorporated in a dynamic way (e.g., based on similarity of outcomes); see Viele 2013 <doi:10.1002/pst.1589> for an overview. This package implements the hierarchical commensurate prior approach to dynamic borrowing as described in Hobbes 2011 <doi:10.1111/j.1541-0420.2011.01564.x>. There are three main functionalities. First, 'psborrow2' provides a user-friendly interface for applying dynamic borrowing on the study results handles the Markov Chain Monte Carlo sampling on behalf of the user. Second, 'psborrow2' provides a simulation framework to compare different borrowing parameters (e.g. full borrowing, no borrowing, dynamic borrowing) and other trial and borrowing characteristics (e.g. sample size, covariates) in a unified way. Third, 'psborrow2' provides a set of functions to generate data for simulation studies, and also allows the user to specify their own data generation process. This package is designed to use the sampling functions from 'cmdstanr' which can be installed from <https://stan-dev.r-universe.dev>.

Downloads

364

Last 30 days

8910th

364

Last 90 days

364

Last year

CRAN Check Status

3 NOTE
11 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 NOTE
r-oldrel-macos-x86_64 NOTE
r-oldrel-windows-x86_64 NOTE
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (17 non-OK)
OK r-devel-linux-x86_64-debian-clang

*


            
OK r-devel-linux-x86_64-debian-gcc

*


            
OK r-devel-linux-x86_64-fedora-clang

*


            
OK r-devel-linux-x86_64-fedora-gcc

*


            
OK r-devel-macos-arm64

*


            
OK r-devel-windows-x86_64

*


            
NOTE r-oldrel-macos-arm64

installed package size

  installed size is  5.4Mb
  sub-directories of 1Mb or more:
    doc   3.9Mb
NOTE r-oldrel-macos-arm64

package dependencies

Package suggested but not available for checking: ‘cmdstanr’
NOTE r-oldrel-macos-x86_64

installed package size

  installed size is  5.3Mb
  sub-directories of 1Mb or more:
    doc   3.9Mb
NOTE r-oldrel-macos-x86_64

package dependencies

Package suggested but not available for checking: ‘cmdstanr’
NOTE r-oldrel-windows-x86_64

installed package size

  installed size is  5.3Mb
  sub-directories of 1Mb or more:
    doc   3.9Mb
NOTE r-oldrel-windows-x86_64

package dependencies

Package suggested but not available for checking: 'cmdstanr'
OK r-patched-linux-x86_64

*


            
OK r-release-linux-x86_64

*


            
OK r-release-macos-arm64

*


            
OK r-release-macos-x86_64

*


            
OK r-release-windows-x86_64

*


            

Check History

NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 9, 2026
NOTE r-oldrel-macos-arm64

package dependencies

Package suggested but not available for checking: ‘cmdstanr’
NOTE r-oldrel-macos-x86_64

package dependencies

Package suggested but not available for checking: ‘cmdstanr’
NOTE r-oldrel-windows-x86_64

package dependencies

Package suggested but not available for checking: 'cmdstanr'

Dependency Network

Dependencies Reverse dependencies checkmate glue posterior generics Matrix mvtnorm future simsurv psborrow2

Version History

new 0.0.4.0 Mar 9, 2026