Package: psborrow 0.2.1

Isaac Gravestock

psborrow: Bayesian Dynamic Borrowing with Propensity Score

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.

Authors:Isaac Gravestock [cre, ctb], Craig Gower-Page [aut], Matt Secrest [ctb], Yichen Lu [aut], Aijing Lin [aut], F. Hoffmann-La Roche AG [cph, fnd]

psborrow_0.2.1.tar.gz
psborrow_0.2.1.tar.gz(r-4.5-noble)psborrow_0.2.1.tar.gz(r-4.4-noble)
psborrow_0.2.1.tgz(r-4.4-emscripten)psborrow_0.2.1.tgz(r-4.3-emscripten)
psborrow.pdf |psborrow.html
psborrow/json (API)
NEWS

# Install 'psborrow' in R:
install.packages('psborrow', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Uses libs:
  • jags– Just Another Gibbs Sampler for Bayesian MCMC
  • c++– GNU Standard C++ Library v3

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

2.60 score 1 stars 4 scripts 319 downloads 18 exports 49 dependencies

Last updated 2 years agofrom:f89abd290e. Checks:OK: 2. Indexed: no.

TargetResultDate
Doc / VignettesOKNov 10 2024
R-4.5-linuxOKNov 10 2024

Exports:apply_mcmcextract_samplesget_summarymatch_covplot_biasplot_hrplot_mseplot_powerplot_type1errorrun_mcmcrun_mcmc_pset_clinset_covset_eventset_nset_priorsimu_covsimu_time

Dependencies:backportschkclicodacodetoolscolorspacedata.tabledoParalleldplyrfansifarverforeachformatRfutile.loggerfutile.optionsgenericsggplot2gluegtableisobanditeratorslabelinglambda.rlatticelifecyclemagrittrMASSMatchItMatrixmgcvmunsellmvtnormnlmepillarpkgconfigR6RColorBrewerRcppRcppProgressrjagsrlangscalessurvivaltibbletidyselectutf8vctrsviridisLitewithr

Analysing data with psborrow

Rendered fromanalysis.html.asisusingR.rsp::asison Nov 10 2024.

Last update: 2022-05-16
Started: 2022-05-16

User Guide: Dynamic Borrowing with psborrow

Rendered fromuser_guide.html.asisusingR.rsp::asison Nov 10 2024.

Last update: 2022-05-16
Started: 2022-05-16

Readme and manuals

Help Manual

Help pageTopics
S4 Class for specifying parameters for enrollment time, drop-out pattern and analysis start time.clinClass .clinClass-class
S4 Class for setting up covariates.covClass .covClass-class
S4 Class for setting parameters for time-to-events.eventClass .eventClass-class
S4 Class for specifying prior distributions and predictors for MCMC methods.priorClass .priorClass-class
Fit Dynamic Borrowing MCMC Modelapply_mcmc extract_samples summary.apply_mcmc
Concatenate multiple '.covClasss' classesc,.covClass-method
Concatenate multiple '.priorClasss' classc,.priorClass-method
Fix Column Namesfix_col_names
Generate summary statistics of a simulation scenarioget_summary
Check if user is in psborrow development environmentis_psborrow_dev
Matchmatch_cov
Plot biasplot_bias
Plot mean posterior hazard ratio between treatment and controlplot_hr
Plot mean squared error (MSE)plot_mse
Plot powerplot_power
Plot type 1 errorplot_type1error
Conditional Messageps_message
Generate summary statistics for the MCMC chainsrej_est
Run MCMC for multiple scenarios with provided datarun_mcmc
Run MCMC for multiple scenarios with provided data with parallel processingrun_mcmc_p
Specify parameters for enrollment time, drop-out pattern and analysis start timeset_clin
Set up covariatesset_cov
Set up time-to-eventsset_event
Simulate external trial indicator and treatment arm indicatorset_n
Specify prior distributions and predictors for MCMC methodsset_prior
Simulate covariatessimu_cov simu_cov,matrix-method
Simulate time-to-events for multiple scenariossimu_time