Lambda_0 MH step, proposal from conditional conjugate posterior
.lambda_0_MH_cp(
df_hist,
Y_0,
I_0,
X_0 = NULL,
s,
beta_0 = NULL,
mu,
sigma2,
lambda,
lambda_0,
tau,
bp_0 = 0,
J,
clam,
a_lam = 0.01,
b_lam = 0.01,
lambda_0_count = 0,
lambda_0_move = 0
)list of updated (if accepted) lambda_0 and data.frames, as well as the number of accepted moves
data.frame from dataframe_fun()
historical trial data
historical trial censoring indicator
historical trial design matrix
split point locations, (J+2)
parameter value for historical covariates
prior mean for baseline hazard
prior variance hyperparameter for baseline hazard
baseline hazard
historical baseline hazard
borrowing parameter
number of covariates, length(beta_0)
number of split points
controls neighbor interactions, in range (0, 1)
lambda hyperparameter, default is 0.01
lambda hyperparameter, default is 0.01
number of total moves for lambda_0
number of accepted moves for lambda_0