`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
)
```

- posterior
marginal posterior distribution generated via the

`marginal_posterior`

function- null_hypothesis
point null hypothesis to test. Defaults to

`0`

- normal_approximation
whether the height of prior and posterior density should be approximated via a normal distribution (rather than kernel density). Defaults to

`FALSE`

.- silent
whether warnings should be returned silently. Defaults to

`FALSE`

`Savage_Dickey_BF`

returns a Bayes factor.