prior {spBayes} | R Documentation |
The function prior
creates a valid prior definition for use in spGGT
.
prior(dist, ...)
dist |
a quoted key word that identifies the prior distribution. The
choices are inverse-gamma "IG" , uniform "UNIF" , half-Cauchy "HC" , normal
"NORMAL" , flat "FLAT" , inverse-Wishart "IWISH" ,
and fixed scalar or matrix "FIXED" . |
... |
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"
. "shape"
, and "scale"
. "a"
. "mu"
and "precision"
. "df"
and "S"
.
The normal and flat priors can only be used for the regressors specified in spGGT
.
prior |
a list object of class ggt.prior which is used for the value portion of the prior tag in
the spGGT function. |
Andrew O. Finley finleya@msu.edu,
Sudipto Banerjee sudiptob@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. (2006). Prior distributions for variance parameters in hierarchical models 1(3):515-533, Bayesian Analysis.