elicitNGa: Elicitation of normal-gamma prior distribution by using...

Description Usage Arguments Value Examples

Description

Elicitation of normal-gamma prior distribution by using quantiles for mu and tau

Usage

1
2
3
  elicitNGa(mup1 = 0.025, muquantile1, mup2 = 0.975,
    muquantile2, taup1 = 0.025, tauquantile1,
    taup2 = 0.975, tauquantile2)

Arguments

mup1

probability

mup2

probability

taup1

probability

taup2

probability

muquantile1

lower mup1-th quantile for mu

muquantile2

lower mup2-th quantile for mu

tauquantile1

lower taup1-th quantile for tau

tauquantile2

lower taup2-th quantile for tau

Value

Vector containing the parameters of the normal-gamma distribution

Examples

1
2
3
4
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)
elicitNGa(0.05,muq1,0.95,muq2,0.05,tauq1,0.95,tauq2) # this function determines the original values of b, c, g and h


Search within the mas3321 package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.