File: ctable.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 (27 lines) | stat: -rw-r--r-- 524 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
\name{ctable}
\alias{ctable}
\title{Bayes factor against independence using uniform priors}
\description{
Computes a Bayes factor against independence for a two-way contingency table assuming
uniform prior distributions}
\usage{
ctable(y,a)
}
\arguments{
  \item{y}{matrix of counts}
  \item{a}{matrix of prior hyperparameters}
}

\value{
value of the Bayes factor against independence
}

\author{Jim Albert}

\examples{
y=matrix(c(10,4,6,3,6,10),c(2,3))
a=matrix(rep(1,6),c(2,3))
ctable(y,a)
}

\keyword{models}