sampleK_e0 {telescope}R Documentation

Sample K conditional on e0 (fixed or random, but not depending on K).

Description

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).

Usage

sampleK_e0(Kp_j, Kmax, log_pK, log_p_e0, e0, N)

Arguments

Kp_j

A number; indicating the current value of K+K_+.

Kmax

A number; indicating the maximum value of KK, for which the conditional posterior is evaluated.

log_pK

A function; evaluating the prior of KK.

log_p_e0

A function; evaluating the log prior of e0e_0.

e0

A number; indicating the value of e0e_0.

N

A number; indicating the number of observations.

Value

A number indicating the new value of KK.


[Package telescope version 0.1-0 Index]