| priorp2g | R Documentation |
priorp2g finds the g value giving priorp prior
probability to the interval (-q,q).
priorp2g(priorp, q, nu=1, prior=c("iMom", "normalMom", "tMom"))
prior |
|
q |
|
nu |
Prior degrees of freedom for the T moment prior or the iMom
prior (ignored if |
priorp |
|
See pmom and pimom for the MOM/iMOM cumulative
distribution functions.
priorp2g returns g giving priorp prior probability to the
interval (-q,q).
David Rossell rosselldavid@gmail.com
See http://rosselldavid.googlepages.com for technical reports.
pmom,
pimom
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.