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
,lp1
andlp2
is further converted to logarithms before the mixture. In such cases, the inputstheta
,lp1
, andlp2
should all be in the probability space to make sense.