View source: R/sample_e0_alpha.R
sampleE0 | R Documentation |
Sample e_0
conditional on the current partition
and value of K
using an Metropolis-Hastings step with
log-normal proposal.
sampleE0(K, Kp, N, Nk, s0_proposal, e0, log_p_e0)
K |
A number; indicating the number of components. |
Kp |
A number; indicating the number of filled components |
N |
A number; indicating the sample size. |
Nk |
An integer vector; indicating the group sizes in the partition. |
s0_proposal |
A numeric value; indicating the standard deviation of the random walk proposal. |
e0 |
A numeric value; indicating the current value of |
log_p_e0 |
A function; evaluating the log prior of |
A named list containing:
"e0"
: a numeric, the new e_0
value.
"acc"
: logical indicating acceptance.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.