File: normnormexch.Rd

package info (click to toggle)
r-cran-learnbayes 2.15.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 1,864 kB
  • sloc: sh: 15; makefile: 2
file content (29 lines) | stat: -rw-r--r-- 726 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
\name{normnormexch}
\alias{normnormexch}
\title{Log posterior of mean and log standard deviation for Normal/Normal exchangeable model}
\description{
 Computes the log posterior density of mean and log standard deviation for a Normal/Normal exchangeable model where (mean, log sd) is given a uniform prior.
}
\usage{
normnormexch(theta,data)
}
\arguments{
  \item{theta}{vector of parameter values of mu and log tau}
  \item{data}{a matrix with columns y (observations) and v (sampling variances)}
}

\value{
value of the log posterior
}

\author{Jim Albert}

\examples{
s.var <- c(0.05, 0.05, 0.05, 0.05, 0.05)
y.means <- c(1, 4, 3, 6,10)
data=cbind(y.means, s.var)
theta=c(-1, 0)
normnormexch(theta,data)
}

\keyword{models}