bfexch: Logarithm of integral of Bayes factor for testing homogeneity...

Description Usage Arguments Value Author(s) Examples

Description

Computes the logarithm of the integral of the Bayes factor for testing homogeneity of a set of proportions

Usage

1
bfexch(theta,datapar)

Arguments

theta

value of the logit of the prior mean hyperparameter

datapar

list with components data, matrix with columns y (counts) and n (sample sizes), and K, prior precision hyperparameter

Value

value of the logarithm of the integral

Author(s)

Jim Albert

Examples

1
2
3
4
5
6
7
y=c(1,3,2,4,6,4,3)
n=c(10,10,10,10,10,10,10)
data=cbind(y,n)
K=20
datapar=list(data=data,K=K)
theta=1
bfexch(theta,datapar)

Example output

[1] -16.48318

LearnBayes documentation built on May 1, 2019, 7:03 p.m.