Metropolis Hastings step: shuffle the split point locations (with Bayesian borrowing)
.shuffle_split_point_location(
df_hist,
df_curr,
Y_0,
I_0,
X_0,
lambda_0,
beta_0,
Y,
I,
X,
lambda,
beta,
s,
J,
bp_0,
bp,
clam_smooth,
maxSj
)list containing new split points, updated Sigma_s and data.frames for historic and current trial data
dataframe containing historical trial data and parmaeters
data.frame containing current trial data and parameters
historical trial data
historical trial censoring indicator
historical trial design matrix
historical baseline hazard
historical parameter vector
data
censoring indicator
design matrix
baseline hazard
parameter vector
split point locations, J + 2
number of split points
number of covariates in historical trial
number of covariates in current trial
neighbor interactions, in range (0, 1), for ICAR update
the smallest of the maximal time points, min(max(Y), max(Y_0))