bf_test: Bayes Factor Hypothesis Tests

Description Usage Arguments Examples

View source: R/functions.R

Description

This function allows you to test a hypothesis. Requires prior and posterior samples. Returns the Savage-Dickey Density Ratio (Bayes Factor), Posterior Probabilities, and Credible Interval.

Usage

1
bf_test(prior, post, H0 = 0, plot = FALSE)

Arguments

prior

vector of prior samples

post

vector of posterior samples

H0

the null hypothesis. Defaults to 0.

plot

should the results be plotted? Defaults to FALSE.

Examples

1

abnormally-distributed/abdisttools documentation built on May 5, 2019, 7:07 a.m.