nSample: nSample

Description Usage Arguments Examples

Description

Depricated: sample a posterior distribution of the form mu|x,tau ~ N(mu, tau) where mu and tau are unknown

Usage

1
nSample(x, a, b, mu0, n0, size)

Arguments

x

an array of data

a

alpha paramter

b

beta parameter

mu0

mu ~ N(mu0, n0)

n0

mu ~ N(mu0, n0)

Examples

1
2
3
4
5
6
7
8
9
compound <- rnorm(2, 100, 10)
a <- 30 
b <- 3100
mu0 <- 0.0
n0 <- 0.0001
size <- 20000

posterior <- nSample(compound, a, b, mu0, n0, size)
hist(posterior$mu)

BenjaminChittick/BenCScore documentation built on May 5, 2019, 2:41 p.m.