normnormexch: Log posterior of mean and log standard deviation for...

Description Usage Arguments Value Author(s) Examples

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

1

Arguments

theta

vector of parameter values of mu and log tau

data

a matrix with columns y (observations) and v (sampling variances)

Value

value of the log posterior

Author(s)

Jim Albert

Examples

1
2
3
4
5
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)

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