Description Usage Arguments Value Examples
Elicitation of normal-gamma prior distribution by using quantiles for mu and tau
1 2 | elicitNGa(mup1 = 0.025, muquantile1, mup2 = 0.975, muquantile2,
taup1 = 0.025, tauquantile1, taup2 = 0.975, tauquantile2)
|
mup1 |
probability. |
muquantile1 |
lower mup1-th quantile for mu. |
mup2 |
probability. |
muquantile2 |
lower mup2-th quantile for mu. |
taup1 |
probability. |
tauquantile1 |
lower taup1-th quantile for tau. |
taup2 |
probability. |
tauquantile2 |
lower taup2-th quantile for tau. |
Vector containing the parameters of the normal-gamma distribution.
1 2 3 4 5 6 | b=20;c=10;g=0.15;h=6 # 5% and 95% quantiles are#'
muq1=qgt(0.05,2*g,b,h/(g*c));muq2=qgt(0.95,2*g,b,h/(g*c))
tauq1=qgamma(0.05,g,h);tauq2=qgamma(0.95,g,h)
#The following function determines the original values of b, c, g and h
elicitNGa(0.05,muq1,0.95,muq2,0.05,tauq1,0.95,tauq2)
elicitNGa(muquantile1=-1,muquantile2=1,tauquantile1=0.1,tauquantile2=1.1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.