Given count data modeled as a binomial, geometric, or negative binomial random variable,
the Bayes factor provided by proportionBF
tests the null hypothesis that
the probability of a success is \(p_0\) (argument p
). Specifically,
the Bayes factor compares two hypotheses: that the probability is \(p_0\), or
probability is not \(p_0\). Currently, the default alternative is that
$$\lambda~logistic(\lambda_0,r)$$ where
\(\lambda_0=logit(p_0)\) and
\(\lambda=logit(p)\). \(r\) serves as a prior scale parameter.
For the rscale
argument, several named values are recognized:
"medium", "wide", and "ultrawide". These correspond
to \(r\) scale values of \(1/2\), \(\sqrt{2}/2\), and 1,
respectively.
The Bayes factor is computed via Gaussian quadrature, and posterior
samples are drawn via independence Metropolis-Hastings.