log_mix from stan
Arguments
- theta, lp1, lp2
Numeric. See https://mc-stan.org/docs/2_21/functions-reference/composed-functions.html for the documentation.
- log_lp
Logical. Defaults to TRUE, which complies with Stan's
log_mix(). IfFALSE,lp1andlp2is further converted to logarithms before the mixture. In such cases, the inputstheta,lp1, andlp2should all be in the probability space to make sense.