normal_standard_update_var: Update the sd of nromal kernel with inverse gamma prior

Description Usage Arguments Value Examples

Description

Update the sd of nromal kernel with inverse gamma prior

Usage

1
normal_standard_update_var(mu, dat, n, sigma_a, sigma_b, re_sd = T)

Arguments

mu:

the mean of sampling distribution, known

dat:

the observed normal draws

n:

number of data points

sigma_a:

the IG prior shape

sigma_b:

the IG prior rate

re_sd:

boulean, true if return sd, o.w. return variance.

Value

: a random draw from IG, or the sqrt of that, depending on re_sd.

Examples

1

jesscyzhao/cyrutil documentation built on May 17, 2019, 2:15 a.m.