normchi2post: Log posterior density for mean and variance for normal...

Description Usage Arguments Value Author(s) Examples

Description

Computes the log of the posterior density of a mean M and a variance S2 when a sample is taken from a normal density and a standard noninformative prior is used.

Usage

1

Arguments

theta

vector of parameter values M and S2

data

vector containing the sample observations

Value

value of the log posterior

Author(s)

Jim Albert

Examples

1
2
3
parameter=c(25,5)
data=c(20, 32, 21, 43, 33, 21, 32)
normchi2post(parameter,data)

Example output

[1] -61.54247

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