View source: R/GMRF_extension.R
GMRF_structure | R Documentation |
This function is used to specify a (non-default) GMRF structure
to pass to argument strucA
of function gen
.
GMRF_structure(
type = c("default", "bym2", "leroux"),
scale.precision = (type == "bym2"),
prior = NULL,
control = NULL
)
type |
one of "default", "bym2" or "leroux". The default choice
corresponds to the precision matrix |
scale.precision |
whether to scale the structured precision matrix. By default
set to |
prior |
prior for the parameter |
control |
options for the Metropolis-Hastings sampler used to sample
from the full conditional distribution of parameter |
An environment defining the desired GMRF structure, for use by other package functions.
B. Leroux, X. Lei and N. Breslow (1999). Estimation of Disease Rates in Small Areas: A New Mixed Model for Spatial Dependence. In M. Halloran and D. Berry (Eds.), Statistical Models in Epidemiology, the Environment and Clinical Trials, 135-178.
A. Riebler, S.H. Sorbye, D. Simpson and H. Rue (2016). An intuitive Bayesian spatial model for disease mapping that accounts for scaling. Statistical methods in medical research, 25(4), 1145-1165.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.