R/marginal-distributions.R
Savage_Dickey_BF.Rd
Computes Savage-Dickey (density ratio) inclusion Bayes factors based the change of height from prior to posterior distribution at the test value.
Savage_Dickey_BF(
posterior,
null_hypothesis = 0,
normal_approximation = FALSE,
silent = FALSE
)
marginal posterior distribution generated via the
marginal_posterior
function
point null hypothesis to test. Defaults to 0
whether the height of prior and posterior density should be
approximated via a normal distribution (rather than kernel density). Defaults to FALSE
.
whether warnings should be returned silently. Defaults to FALSE
Savage_Dickey_BF
returns a Bayes factor.