| prior {spBayes} | R Documentation |
The function prior creates a valid prior definition for use in
the ggt and ggt.sp functions.
prior(dist, ...)
dist |
a quoted key word that identifies the prior distribution. The
choices are inverse gamma "IG", uniform "UNIF",
log-uniform, "LOGUNIF", half-Cauchy "HC", and normal "NORMAL". |
... |
the hyperparameters of the chosen prior distribution, passed as quoted key words with associated values. See details below. |
Up to a proportionality constant the possible priors are:
"a", and "b". "a", and "b". "shape", and "scale". "a". "mu" and "precision".
The normal prior can only be used for the regressors specified in ggt and ggt.sp.
prior |
a list object of class ggt.prior which is used for the value portion of the prior tag in
the ggt and ggt.sp functions. |
Andrew O. Finley afinley@stat.umn.edu,
Sudipto Banerjee sudiptob@biostat.umn.edu,
Bradley P. Carlin brad@biostat.umn.edu
Banerjee, S., Carlin, B.P., and Gelfand, A.E. (2004). Hierarchical modeling and analysis for spatial data. Chapman and Hall/CRC Press, Boca Raton, Fla.
Gelman, A. (2005). Prior distributions for variance parmaters in hierarchical models. 1(2):1-19, Bayesian Analysis.
Further information on the package spBayes can be found at: http://blue.fr.umn.edu/spatialBayes.