View source: R/sampling_Lambda_jj.R
Generates a sample from the the posterior distribution of the j-th diagonal element (i,j) of the Λ matrix 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 15 16 17 | sampling_Lambda_jj(
n_sim_mh = 1,
sigma_jj_ini,
j,
d_0_z,
d_1_z,
kappa = 1,
Z,
mu_Z,
sigma_Z,
sampling_prob,
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.