Skip to content

psborrow

Bayesian Dynamic Borrowing with Propensity Score

v0.2.4 · Aug 22, 2025 · Apache License (>= 2)

Description

A tool which aims to help evaluate the effect of external borrowing using an integrated approach described in Lewis et al., (2019) <doi:10.1080/19466315.2018.1497533> that combines propensity score and Bayesian dynamic borrowing methods.

Downloads

598

Last 30 days

6101st

1.8K

Last 90 days

7.3K

Last year

Trend: +16.6% (30d vs prior 30d)

CRAN Check Status

13 OK
Show all 13 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-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 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 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

tests

Running ‘testthat.R’ [45s/318s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(psborrow)
  > 
  > test_check("psborrow")
  Fatal error: creating temporary file for '-e' failed
  Saving _problems/tes
...[truncated]...
  5.     └─parallel::makePSOCKcluster(names = spec, ...)
  
  [ FAIL 1 | WARN 0 | SKIP 2 | PASS 128 ]
  Error:
  ! Test failures.
  Warning message:
  In for (i in seq_len(n)) { :
    closing unused connection 5 (<-localhost:11732)
  Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 10, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 9, 2026
ERROR r-devel-linux-x86_64-debian-gcc

package dependencies

Package required but not available: ‘MatchIt’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies dplyr data.table rjags mvtnorm ggplot2 foreach doParallel MatchIt survival futile.logger psborrow

Version History

7 tracked
new 0.2.4 Mar 10, 2026
updated 0.2.4 ← 0.2.3 diff Aug 21, 2025
updated 0.2.3 ← 0.2.2 diff Jun 22, 2025
updated 0.2.2 ← 0.2.1 diff Feb 18, 2025
updated 0.2.1 ← 0.2.0 diff Mar 2, 2023
updated 0.2.0 ← 0.1.0 diff May 15, 2022
new 0.1.0 Jun 3, 2021