IDEAS home Printed from https://ideas.repec.org/a/jss/jstsof/v055i13.html
   My bibliography  Save this article

CARBayes: An R Package for Bayesian Spatial Modeling with Conditional Autoregressive Priors

Author

Listed:
  • Lee, Duncan

Abstract

Conditional autoregressive models are commonly used to represent spatial autocorrelation in data relating to a set of non-overlapping areal units, which arise in a wide variety of applications including agriculture, education, epidemiology and image analysis. Such models are typically specified in a hierarchical Bayesian framework, with inference based on Markov chain Monte Carlo (MCMC) simulation. The most widely used software to fit such models is WinBUGS or OpenBUGS, but in this paper we introduce the R package CARBayes. The main advantage of CARBayes compared with the BUGS software is its ease of use, because: (1) the spatial adjacency information is easy to specify as a binary neighbourhood matrix; and (2) given the neighbourhood matrix the models can be implemented by a single function call in R. This paper outlines the general class of Bayesian hierarchical models that can be implemented in the CARBayes software, describes their implementation via MCMC simulation techniques, and illustrates their use with two worked examples in the fields of house price analysis and disease mapping.

Suggested Citation

  • Lee, Duncan, 2013. "CARBayes: An R Package for Bayesian Spatial Modeling with Conditional Autoregressive Priors," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 55(i13).
  • Handle: RePEc:jss:jstsof:v:055:i13
    DOI: http://hdl.handle.net/10.18637/jss.v055.i13
    as

    Download full text from publisher

    File URL: https://www.jstatsoft.org/index.php/jss/article/view/v055i13/v55i13.pdf
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v055i13/CARBayes_1.6.tar.gz
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v055i13/v55i13.R
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v055i13/v55i13-bugs.zip
    Download Restriction: no

    File URL: https://libkey.io/http://hdl.handle.net/10.18637/jss.v055.i13?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Julian Besag & Jeremy York & Annie Mollié, 1991. "Bayesian image restoration, with two applications in spatial statistics," Annals of the Institute of Statistical Mathematics, Springer;The Institute of Statistical Mathematics, vol. 43(1), pages 1-20, March.
    2. Håvard Rue & Sara Martino & Nicolas Chopin, 2009. "Approximate Bayesian inference for latent Gaussian models by using integrated nested Laplace approximations," Journal of the Royal Statistical Society Series B, Royal Statistical Society, vol. 71(2), pages 319-392, April.
    3. Furrer, Reinhard & Sain, Stephan R., 2010. "spam: A Sparse Matrix R Package with Emphasis on MCMC Methods for Gaussian Markov Random Fields," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 36(i10).
    4. Brian J. Reich & James S. Hodges, 2008. "Modeling Longitudinal Spatial Periodontal Data: A Spatially Adaptive Model with Tools for Specifying Priors and Checking Fit," Biometrics, The International Biometric Society, vol. 64(3), pages 790-799, September.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Ying C. MacNab, 2018. "Some recent work on multivariate Gaussian Markov random fields," TEST: An Official Journal of the Spanish Society of Statistics and Operations Research, Springer;Sociedad de Estadística e Investigación Operativa, vol. 27(3), pages 497-541, September.
    2. Chen, Yewen & Chang, Xiaohui & Luo, Fangzhi & Huang, Hui, 2023. "Additive dynamic models for correcting numerical model outputs," Computational Statistics & Data Analysis, Elsevier, vol. 187(C).
    3. Shreosi Sanyal & Thierry Rochereau & Cara Nichole Maesano & Laure Com-Ruelle & Isabella Annesi-Maesano, 2018. "Long-Term Effect of Outdoor Air Pollution on Mortality and Morbidity: A 12-Year Follow-Up Study for Metropolitan France," IJERPH, MDPI, vol. 15(11), pages 1-8, November.
    4. Mayer Alvo & Jingrui Mu, 2023. "COVID-19 Data Analysis Using Bayesian Models and Nonparametric Geostatistical Models," Mathematics, MDPI, vol. 11(6), pages 1-13, March.
    5. Vanessa Santos-Sánchez & Juan Antonio Córdoba-Doña & Javier García-Pérez & Antonio Escolar-Pujolar & Lucia Pozzi & Rebeca Ramis, 2020. "Cancer Mortality and Deprivation in the Proximity of Polluting Industrial Facilities in an Industrial Region of Spain," IJERPH, MDPI, vol. 17(6), pages 1-15, March.
    6. Massimo Bilancia & Giacomo Demarinis, 2014. "Bayesian scanning of spatial disease rates with integrated nested Laplace approximation (INLA)," Statistical Methods & Applications, Springer;Società Italiana di Statistica, vol. 23(1), pages 71-94, March.
    7. Douglas R. M. Azevedo & Marcos O. Prates & Dipankar Bandyopadhyay, 2021. "MSPOCK: Alleviating Spatial Confounding in Multivariate Disease Mapping Models," Journal of Agricultural, Biological and Environmental Statistics, Springer;The International Biometric Society;American Statistical Association, vol. 26(3), pages 464-491, September.
    8. Jonathan Wakefield & Taylor Okonek & Jon Pedersen, 2020. "Small Area Estimation for Disease Prevalence Mapping," International Statistical Review, International Statistical Institute, vol. 88(2), pages 398-418, August.
    9. Julien Riou & Anthony Hauser & Anna Fesser & Christian L. Althaus & Matthias Egger & Garyfallos Konstantinoudis, 2023. "Direct and indirect effects of the COVID-19 pandemic on mortality in Switzerland," Nature Communications, Nature, vol. 14(1), pages 1-9, December.
    10. Isabel Martínez-Pérez & Verónica González-Iglesias & Valentín Rodríguez Suárez & Ana Fernández-Somoano, 2021. "Spatial Distribution of Hospitalizations for Ischemic Heart Diseases in the Central Region of Asturias, Spain," IJERPH, MDPI, vol. 18(23), pages 1-10, November.
    11. Johnson, Blair T. & Sisti, Anthony & Bernstein, Mary & Chen, Kun & Hennessy, Emily A. & Acabchuk, Rebecca L. & Matos, Michaela, 2021. "Community-level factors and incidence of gun violence in the United States, 2014–2017," Social Science & Medicine, Elsevier, vol. 280(C).
    12. Maike Tahden & Juliane Manitz & Klaus Baumgardt & Gerhard Fell & Thomas Kneib & Guido Hegasy, 2016. "Epidemiological and Ecological Characterization of the EHEC O104:H4 Outbreak in Hamburg, Germany, 2011," PLOS ONE, Public Library of Science, vol. 11(10), pages 1-19, October.
    13. Márcio Poletti Laurini, 2017. "A spatial error model with continuous random effects and an application to growth convergence," Journal of Geographical Systems, Springer, vol. 19(4), pages 371-398, October.
    14. Radka Jersakova & James Lomax & James Hetherington & Brieuc Lehmann & George Nicholson & Mark Briers & Chris Holmes, 2022. "Bayesian imputation of COVID‐19 positive test counts for nowcasting under reporting lag," Journal of the Royal Statistical Society Series C, Royal Statistical Society, vol. 71(4), pages 834-860, August.
    15. Birgit Schrödle & Leonhard Held, 2011. "A primer on disease mapping and ecological regression using $${\texttt{INLA}}$$," Computational Statistics, Springer, vol. 26(2), pages 241-258, June.
    16. Darren J. Mayne & Geoffrey G. Morgan & Bin B. Jalaludin & Adrian E. Bauman, 2018. "Does Walkability Contribute to Geographic Variation in Psychosocial Distress? A Spatial Analysis of 91,142 Members of the 45 and Up Study in Sydney, Australia," IJERPH, MDPI, vol. 15(2), pages 1-24, February.
    17. Ana Carolina Carioca da Costa & Cláudia Torres Codeço & Elias Teixeira Krainski & Marcelo Ferreira da Costa Gomes & Aline Araújo Nobre, 2018. "Spatiotemporal diffusion of influenza A (H1N1): Starting point and risk factors," PLOS ONE, Public Library of Science, vol. 13(9), pages 1-20, September.
    18. Luca Grassetti & Laura Rizzi, 2019. "The determinants of individual health care expenditures in the Italian region of Friuli Venezia Giulia: evidence from a hierarchical spatial model estimation," Empirical Economics, Springer, vol. 56(3), pages 987-1009, March.
    19. Ferreira, Marco A.R. & Porter, Erica M. & Franck, Christopher T., 2021. "Fast and scalable computations for Gaussian hierarchical models with intrinsic conditional autoregressive spatial random effects," Computational Statistics & Data Analysis, Elsevier, vol. 162(C).
    20. William Gonzalez Daza & Renata L. Muylaert & Thadeu Sobral-Souza & Victor Lemes Landeiro, 2023. "Malaria Risk Drivers in the Brazilian Amazon: Land Use—Land Cover Interactions and Biological Diversity," IJERPH, MDPI, vol. 20(15), pages 1-16, August.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:jss:jstsof:v:055:i13. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Christopher F. Baum (email available below). General contact details of provider: http://www.jstatsoft.org/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.