This sampling step only relies on the current partition and is independent of the current component-specific parameters, see Frühwirth-Schnatter et al (2021).
sampleK_e0(Kp_j, Kmax, log_pK, log_p_e0, e0, N)A number indicating the new value of \(K\).
A number; indicating the current value of \(K_+\).
A number; indicating the maximum value of \(K\), for which the conditional posterior is evaluated.
A function; evaluating the prior of \(K\).
A function; evaluating the log prior of \(e_0\).
A number; indicating the value of \(e_0\).
A number; indicating the number of observations.