priorp2g {mombf} | R Documentation |
Moment and inverse moment prior elicitation
Description
priorp2g
finds the g
value giving priorp
prior
probability to the interval (-q
,q
).
Usage
priorp2g(priorp, q, nu=1, prior=c("iMom", "normalMom", "tMom"))
Arguments
prior |
|
q |
|
nu |
Prior degrees of freedom for the T moment prior or the iMom
prior (ignored if |
priorp |
|
Details
See pmom
and pimom
for the MOM/iMOM cumulative
distribution functions.
Value
priorp2g
returns g giving priorp
prior probability to the
interval (-q,q)
.
Author(s)
David Rossell rosselldavid@gmail.com
References
See http://rosselldavid.googlepages.com for technical reports.
See Also
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