normalgamma {lestat} | R Documentation |
A Normal-Gamma Distribution
Description
Creates an object representing a Normal-Gamma distribution. If has a Normal-Gamma
distribution, then the marginal distribution of
is a Gamma distribution, and the conditional
distribution of
given
is normal.
Usage
normalgamma(mu, kappa, alpha, beta)
Arguments
mu |
The |
kappa |
The |
alpha |
The |
beta |
The |
Details
If has a Normal-Gamma distribution with parameters
,
,
, and
, then the marginal distribution of
has a Gamma
distribution with parameters
and
, and conditionally on
,
has a normal distribution with expectation
and logged standard deviation
. The probability density is proportional to
Value
A Normal-Gamma probability distribution.
Author(s)
Petter Mostad <mostad@chalmers.se>
See Also
gamma
, normal
, expgamma
, normalexpgamma
,
mnormal
, mnormalgamma
, mnormalexpgamma
Examples
plot(normalgamma(3,4,5,6))