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)A named list containing:
"e0": a numeric, the new \(e_0\) value.
"acc": logical indicating acceptance.
A number; indicating the number of components.
A number; indicating the number of filled components \(K_+\).
A number; indicating the sample size.
An integer vector; indicating the group sizes in the partition.
A numeric value; indicating the standard deviation of the random walk proposal.
A numeric value; indicating the current value of \(e_0\).
A function; evaluating the log prior of \(e_0\).