https://github.com/cran/LearnBayes
Tip revision: b553a7cb264fcb8105230731348533fa03ca7e23 authored by Jim Albert on 16 April 2008, 00:00:00 UTC
version 1.2
version 1.2
Tip revision: b553a7c
betabinexch0.Rd
\name{betabinexch0}
\alias{betabinexch0}
\title{Log posterior of mean and precision for Binomial/beta exchangeable model}
\description{
Computes the log posterior density of mean and precision for a Binomial/beta exchangeable model
}
\usage{
betabinexch0(theta,data)
}
\arguments{
\item{theta}{vector of parameter values of eta and K}
\item{data}{a matrix with columns y (counts) and n (sample sizes)}
}
\value{
value of the log posterior}
\author{Jim Albert}
\examples{
n=c(20,20,20,20,20)
y=c(1,4,3,6,10)
data=cbind(y,n)
theta=c(.1,10)
betabinexch0(theta,data)
}
\keyword{models}