File: bfexch.Rd

package info (click to toggle)
r-cran-learnbayes 2.15-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,064 kB
  • sloc: sh: 16; makefile: 1
file content (32 lines) | stat: -rw-r--r-- 746 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
\name{bfexch}
\alias{bfexch}
\title{Logarithm of integral of Bayes factor for testing homogeneity of proportions}
\description{
Computes the logarithm of the integral of the Bayes factor for testing homogeneity of a set of proportions
}
\usage{
bfexch(theta,datapar)
}
\arguments{
  \item{theta}{value of the logit of the prior mean hyperparameter}
  \item{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{Jim Albert}

\examples{
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)
}

\keyword{models}