View source: R/math-functions.R
h | R Documentation |
Find the probability that Beta(a, b) > Beta(c, d)
. This comes from
https://www.chrisstucchio.com/blog/2014/bayesian_ab_decision_rule.html. Note
that the approx = TRUE
version is vectorized, but the exact version
is not.
h(a, b, c, d, approx = FALSE, log_h = FALSE)
a |
alpha parameter for first Beta |
b |
beta parameter for second Beta |
c |
alpha parameter for first Beta |
d |
beta parameter for second Beta |
approx |
whether to use a normal approximation to the beta |
log_h |
whether to return |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.