psborrow2

Bayesian Dynamic Borrowing Analysis and Simulation

CRAN Package

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://mc-stan.org/r-packages/.


Documentation


Team


Insights

Last 30 days

This package has been downloaded 256 times in the last 30 days. Now we're getting somewhere! Enough downloads to populate a lively group chat. The following heatmap shows the distribution of downloads per day. Yesterday, it was downloaded 3 times.

Sun
Mon
Tue
Wed
Thu
Fri
Sat
0 downloadsFeb 9, 2025
0 downloadsFeb 10, 2025
0 downloadsFeb 11, 2025
0 downloadsFeb 12, 2025
0 downloadsFeb 13, 2025
0 downloadsFeb 14, 2025
3 downloadsFeb 15, 2025
14 downloadsFeb 16, 2025
35 downloadsFeb 17, 2025
11 downloadsFeb 18, 2025
16 downloadsFeb 19, 2025
27 downloadsFeb 20, 2025
5 downloadsFeb 21, 2025
8 downloadsFeb 22, 2025
7 downloadsFeb 23, 2025
7 downloadsFeb 24, 2025
9 downloadsFeb 25, 2025
5 downloadsFeb 26, 2025
13 downloadsFeb 27, 2025
3 downloadsFeb 28, 2025
11 downloadsMar 1, 2025
6 downloadsMar 2, 2025
5 downloadsMar 3, 2025
7 downloadsMar 4, 2025
10 downloadsMar 5, 2025
7 downloadsMar 6, 2025
4 downloadsMar 7, 2025
0 downloadsMar 8, 2025
0 downloadsMar 9, 2025
2 downloadsMar 10, 2025
12 downloadsMar 11, 2025
7 downloadsMar 12, 2025
5 downloadsMar 13, 2025
5 downloadsMar 14, 2025
9 downloadsMar 15, 2025
3 downloadsMar 16, 2025
0 downloadsMar 17, 2025
0 downloadsMar 18, 2025
0 downloadsMar 19, 2025
0 downloadsMar 20, 2025
0 downloadsMar 21, 2025
0 downloadsMar 22, 2025
0
35

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Last 365 days

This package has been downloaded 5,845 times in the last 365 days. A solid achievement! Enough downloads to get noticed at department meetings. The day with the most downloads was May 05, 2024 with 65 downloads.

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Data provided by CRAN


Binaries


Dependencies

  • Imports8 packages
  • Suggests20 packages