prob_directed: One sided (Directional) Bayesian hypothesis testing

Description Usage Arguments Examples

View source: R/functions.R

Description

One sided (Directional) Bayesian hypothesis testing

Usage

1
prob_directed(posterior, H0 = 0, direction = "fsp", plot = TRUE)

Arguments

posterior

the posterior distribution in question

H0

The Null Hypothesis. Defaults to 0, but for distributions such as the beta it makes sense to change H0 to 0.50.

direction

"pos" evaluates P(theta > H0 | Data). "neg" evaluates P(theta < H0 | Data). "fsp" (false sign probability) calculates the probability that the estimate is in the wrong direction, ie, min( P(theta > H0 | Data) , P(theta < H0 | Data) ). Defaults to "fsp".

plot

defaults to TRUE

Examples

1

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