BayesFBHborrow2.0.2 package

Bayesian Dynamic Borrowing with Flexible Baseline Hazard Function

BayesFBHborrow.NoBorrow

Run the MCMC sampler without Bayesian Borrowing

BayesFBHborrow

BayesFBHborrow: Run MCMC for a piecewise exponential model

BayesFBHborrow.WBorrow

Run the MCMC sampler with Bayesian Borrowing

coef.BayesFBHborrow

Extract mean posterior values

dot-beta_MH_MALA

Proposal beta with a Metropolis Adjusted Langevin (MALA)

dot-beta_MH_NR

Newton Raphson MH move

dot-beta_MH_RW

Beta Metropolis-Hastings random walk move

dot-beta_mom.NR.fun

First and second derivative of target for mode and variance of proposa...

dot-beta_mom

Mean for MALA using derivative for beta proposal

dot-beta.MH.RW.glm

Beta MH RW sampler from freq PEM fit

dot-birth_move

Birth move in RJMCMC

dot-dataframe_fun

Create data.frame for piecewise exponential models

dot-death_move

Death move in RJMCMC

dot-glmFit

Fit frequentist piecewise exponential model for MLE and information ma...

dot-ICAR_calc

Calculate covariance matrix in the MVN-ICAR

dot-input_check

Input checker

dot-J_RJMCMC_NoBorrow

RJMCMC (without Bayesian Borrowing)

dot-J_RJMCMC

RJMCMC (with Bayesian Borrowing)

dot-lambda_0_MH_cp_NoBorrow

Lambda_0 MH step, proposal from conditional conjugate posterior

dot-lambda_0_MH_cp

Lambda_0 MH step, proposal from conditional conjugate posterior

dot-lambda_conj_prop

Propose lambda from a gamma conditional conjugate posterior proposal

dot-lambda_MH_cp

Lambda MH step, proposal from conditional conjugate posterior

dot-lgamma_ratio

Calculate log gamma ratio for two different parameter values

dot-llikelihood_ratio_beta

Loglikelihood ratio calculation for beta parameters

dot-llikelihood_ratio_lambda

Log likelihood for lambda / lambda_0 update

dot-log_likelihood

Log likelihood function

dot-logsumexp

Computes the logarithmic sum of an exponential

dot-lprop_density_beta

Log density of proposal for MALA

dot-lprop.dens.beta.NR

log Gaussian proposal density for Newton Raphson proposal

dot-ltau_dprior

Calculate log density tau prior

dot-mu_update

Calculate mu posterior update

dot-normalize_prob

Normalize a set of probability to one, using the the log-sum-exp trick

dot-nu_sigma_update

Calculates nu and sigma2 for the Gaussian Markov random field prior, f...

dot-plot_hist

Plot histogram from MCMC samples

dot-plot_matrix

Plot smoothed baseline hazards

dot-plot_trace

Plot MCMC trace

dot-predictive_hazard_ratio

Predictive hazard ratio (HR) from BayesFBHborrow object

dot-predictive_hazard

Predictive hazard from BayesFBHborrow object

dot-predictive_survival

Predictive survival from BayesFBHborrow object

dot-set_hyperparameters

Set tuning parameters

dot-set_tuning_parameters

Set tuning parameters

dot-shuffle_split_point_location_NoBorrow

Metropolis Hastings step: shuffle the split point locations (without B...

dot-shuffle_split_point_location

Metropolis Hastings step: shuffle the split point locations (with Baye...

dot-sigma2_update

Calculate sigma2 posterior update

dot-smooth_hazard

Smoothed hazard function

dot-smooth_survival

Smoothed survival curve

dot-tau_update

Sample tau from posterior distribution

GibbsMH.NoBorrow

GibbsMH sampler, without Bayesian Borrowing

GibbsMH

S3 generic, calls the correct GibbsMH sampler

GibbsMH.WBorrow

GibbsMH sampler, with Bayesian Borrowing

group_summary

Create group level data

init_lambda_hyperparameters

Initialize lambda hyperparameters

plot.BayesFBHborrow

Plot the MCMC results

summary.BayesFBHborrow

Summarize fixed MCMC results

Allows Bayesian borrowing from a historical dataset for time-to- event data. A flexible baseline hazard function is achieved via a piecewise exponential likelihood with time varying split points and smoothing prior on the historic baseline hazards. The method is described in Scott and Lewin (2024) <doi:10.48550/arXiv.2401.06082>, and the software paper is in Axillus et al. (2024) <doi:10.48550/arXiv.2408.04327>.

  • Maintainer: Darren Scott
  • License: Apache License (>= 2)
  • Last published: 2024-09-16