Performs simultaneous selection of covariates and spatial model structure for areal data.
probs.icar(
Y,
X,
H,
H.spectral = NULL,
Sig_phi = NULL,
b = 0.05,
verbose = FALSE
)A list containing a data frame with all posterior model probabilities and other selection information.
Data frame containing posterior model probabilities for all candidate OLMs and ICAR models from the data.
Vector of model priors used to obtain the posterior model probabilities.
Vector of all (log) fractional integrated likelihoods.
Maximum (log) fractional integrated likelihood among all candidate models. All fractional Bayes factors are obtained with respect to this model.
Vector of fractional Bayes factors for all candidate models.
A vector of responses.
A matrix of covariates, which should include a column of 1's for models with a non-zero intercept
Neighborhood matrix for spatial subregions.
Spectral decomposition of neighborhood matrix, if user wants to pre-compute it to save time.
Pseudo inverse of the neighborhood matrix, if user wants to pre-compute it to save time.
Training fraction for the fractional Bayes factor (FBF) approach.
If FALSE, marginal likelihood progress is not printed.
Erica M. Porter, Christopher T. Franck, and Marco A.R. Ferreira
Porter_2024ref.ICAR