View source: R/marginal-distributions.R
Savage_Dickey_BF | R Documentation |
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
)
posterior |
marginal posterior distribution generated via the
|
null_hypothesis |
point null hypothesis to test. Defaults to |
normal_approximation |
whether the height of prior and posterior density should be
approximated via a normal distribution (rather than kernel density). Defaults to |
silent |
whether warnings should be returned silently. Defaults to |
Savage_Dickey_BF
returns a Bayes factor.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.