R/sample_partition_independence.R
sample_partition_independence.RdThis function implements a reversible jump MCMC procedure for updating the parameter partition in Bayesian Rank-Clustered Estimation for Network Meta-Analysis models in the case when we assume independence between treatment effects. For internal use only.
sample_partition_independence(
ybar,
J,
nu,
g,
K,
mu0,
sigma0,
s,
tau = tau,
b_g = 0.5,
d_g = 0.5
)A vector of estimated average relative intervention effects based on a previous NMA. The jth entry is the effect of intervention j.
A numeric indicating the total number of interventions being compared.
A vector indicating current values for nu in the Gibbs sampler.
A vector indicating current values for g in the Gibbs sampler.
A vector indicating current values for K in the Gibbs sampler.
The hyperparameter mu0, usually specified as the grand mean of the average intervention effects.
The hyperparameter sigma_0, usually a large number as to be minimally informative.
A vector of the estimated standard deviations of each intervention. The jth entry is the standard deviation of intervention j.
The standard deviation of the Metropolis Hastings proposal distribution.
The probability of "birth"ing a new partition cluster, if possible. Default is 0.5.
The probability of "death"ing an existing partition cluster, if possible. Default is 0.5.
A list containing updated values for g, nu, and K.