Description Usage Arguments Details Value
Calculate the parameters for a normal gamma distribution parameterized by the expected value and standard deviation.
1 | calc_normal_gamma_dist(mu, tau, sigma_mu, sigma_tau)
|
mu |
The expected value of x (see details) |
tau |
The expected value of T (see details) |
sigma_mu |
The standard deviation of x (see details) |
sigma_tau |
The standard deviation of T (see details) |
If (x, T) ~ NormalGamma(mu, lambda, alpha, beta), then mu
= E[x],
tau
= E[T], sigma_mu^2
= Var(x), and sigma_tau^2
= Var(T)
An object of class normal_gamma_dist
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.