BMA2: Perform complete Bayesian Model Averaging on some Spatial...

INLABMAR Documentation

Perform complete Bayesian Model Averaging on some Spatial Econometrics models

Description

This function performs Bayesian Model Averaging on a list of different Spatial Econometrics models. These models have been computed under different values of the spatial autocorrelation parameter rho.

Usage

INLABMA(models, rho, logrhoprior = rep(1, length(rho)), impacts = FALSE, 
 usenormal = FALSE)

Arguments

models

List of INLA models, computed for different values of rho.

rho

A vector with the values of rho used to compute models.

logrhoprior

Vector with the values of the log-prior density of rho.

impacts

Logical. Whether impacts should be computed.

usenormal

Logical. Whether the posterior marginal of rho is assumed to be Gaussian.

Details

This functions perfomrs BMA on most of the compponents of an INLA model using the marginal likelihoods of the models and the provided log-prior density of rho.

Value

A list with the averaged components. Another component called rho is added, with its posterior marginal and some other summary information.

Author(s)

Virgilio Gómez-Rubio <virgilio.gomez@uclm.es>

References

Roger S. Bivand, Virgilio Gómez-Rubio, Hĺvard Rue (2014). Approximate Bayesian inference for spatial econometrics models. Spatial Statistics, Volume 9, 146-165.

Roger S. Bivand, Virgilio Gómez-Rubio, Hĺvard Rue (2015). Spatial Data Analysis with R-INLA with Some Extensions. Journal of Statistical Software, 63(20), 1-31. URL http://www.jstatsoft.org/v63/i20/.

See Also

sem.inla, slm.inla, sdm.inla


INLABMA documentation built on Nov. 18, 2023, 5:13 p.m.

Related to BMA2 in INLABMA...