Description Usage Arguments Value Examples
Update the sd of nromal kernel with inverse gamma prior
1 | normal_standard_update_var(mu, dat, n, sigma_a, sigma_b, re_sd = T)
|
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. |
: a random draw from IG, or the sqrt of that, depending on re_sd.
1 | normal_standard_update_var(1, 1, n, 1, 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.