Generates a sample from the posterior distribution of b in the mixdpcluster model for bayesian clustering. The simulation is done via Metropolis-Hastings method.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | sampling_b(
n_sim_mh = 1,
b_ini,
a,
d_0_b,
d_1_b,
eta = 1,
mu_star_n_r,
max.time = 10 * 60,
n.burn = 0,
accept_display = T,
verbose = F,
USING_CPP = TRUE
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.