mode2g function

Moment and inverse moment prior elicitation

Moment and inverse moment prior elicitation

priorp2g finds the g value giving priorp prior probability to the interval (-q,q).

priorp2g(priorp, q, nu=1, prior=c("iMom", "normalMom", "tMom"))

Arguments

  • prior: prior=='normalMom' does computations for the normal moment prior, prior=='tMom' for the T moment prior, prior=='iMom' does computations for the inverse moment prior. Currently prior=='tMom' is not implemented in priorp2g.
  • q: priorp2g returns g giving priorp prior probability to the interval (-q,q).
  • nu: Prior degrees of freedom for the T moment prior or the iMom prior (ignored if prior=='normalMom').
  • priorp: priorp2g returns g giving priorp prior probability to the interval (-q,q)

Details

See pmom and pimom for the MOM/iMOM cumulative distribution functions.

Returns

priorp2g returns g giving priorp prior probability to the interval (-q,q).

References

See http://rosselldavid.googlepages.com for technical reports.

Author(s)

David Rossell rosselldavid@gmail.com

See Also

pmom, pimom

Examples

data(hald) lm1 <- lm(hald[, 1] ~ hald[, 2] + hald[, 3] + hald[, 4] + hald[, 5]) #find g value giving 0.05 probability to interval (-.2,.2) priorp <- .05; q <- .2 gmom <- priorp2g(priorp=priorp, q=q, prior='normalMom') gimom <- priorp2g(priorp=priorp, q=q, prior='iMom') gmom gimom
  • Maintainer: David Rossell
  • License: GPL (>= 2) | file LICENSE
  • Last published: 2024-02-06