bayes.factor.K: Computes Bayes Factor for Single Alternative

bayes.factor.KR Documentation

Computes Bayes Factor for Single Alternative

Description

Computes Bayes factor in support of a streaky model over a consistent model for a single alternative for the streaky model.

Usage

bayes.factor.K(y, log.K)

Arguments

y

vector of binary outcomes (0's and 1's)

log.K

value of log(K) under streaky model

Value

log Bayes factor in support of streaky model

Author(s)

Jim Albert

References

Albert, J. (2013), Looking at Spacings to Access Streakiness, Journal of Quantitative Analysis of Sports, Vol 9, Issue 2, 151-163.

Examples

y <- c(0, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0)
bayes.factor.function(y)

bayesball/BayesTestStreak documentation built on April 28, 2024, 6:28 a.m.