Skip to content

R-INLA code to fit spatio-temporal CAR models described in Goicoa et al. (2018, SERRA)

License

Notifications You must be signed in to change notification settings

spatialstatisticsupna/Identifiability_Constraints_article

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Identifiability constraints in spatio-temporal areal models

This repository contains the R code to fit in INLA the spatio-temporal models described in "In spatio-temporal disease mapping models, identifiability constraints affect PQL and INLA results" (Goicoa et al., 2018).

Table of contents

Data

Female breast cancer mortality data (ICD-10 code 50) in Spanish provinces during the period 1990-2010.

  • BreastCancer_ESP.Rdata

    This .Rdata contains the following objects

    • Data: data.frame object with the number of observed and expected cases ('Counts' and 'Expected' variables, respectively) for each province ('Area') and time period ('Year') for female breast cancer mortality data.
    • Carto_ESP: sf object containing the spatial polygons of the Spanish provinces. The data contains a data.frame with 50 rows and 'Area' (character vector of geographic identifiers), 'Name' (character vector of province names), 'Longitude' (numeric vector of longitude values), 'Latitude' (numeric vector of latitude values) and 'geometry' (sfc_MULTIPOLYGON) variables.
  • Esp_prov_nb.graph

    An inla.graph object with the spatial neighbourhood structure of the 50 provinces of Spain.

R code

R code to fit with INLA (http://www.r-inla.org/) the spatio-temporal CAR models described in Goicoa et al. (2018). All the R files are written by the authors of the paper.

  • CARmodels_INLA.R

    Main script including the required functions to fit in INLA the spatio-temporal CAR models with different types of interactions. Slight modifications of the original code described in the Appendix section of Goicoa et al. (2018) have been introduced in order to be compatible with the 20.12.10 testing version of INLA. More precisely, we eliminate the redundant constraints in the extraconstr argument of the INLA::inla() function.

  • posterior_lincombs.R

    Auxiliary script including the code to compute the posterior marginal distributions of the spatial, temporal and spatio-temporal patterns (Adin et al., 2017) defined as linear combinations of the log-risks using the INLA::inla.make.lincombs() function.

  • Results.R

    Script to analyse the results of previously fitted INLA models.

Acknowledgements

This work has been supported by the Spanish Ministry of Economy and Competitiveness (project MTM2014-51992-R), and by the Health Department of the Navarre Government (Project 113, Res.2186/2014).

References

Adin, A., Martínez-Beneito, M.A., Botella-Rocamora, P., Goicoa, T., and Ugarte, M.D. (2017). Smoothing and high risk areas detection in space-time disease mapping: a comparison of P-splines, autoregressive, and moving average models. Stochastic Environmental Research and Risk Assessment, 31(2), 403-415.

Goicoa, T., Adin, A., Ugarte, M.D., and Hodges, J.S. (2018). In spatio-temporal disease mapping models, identifiability constraints affect PQL and INLA results. Stochastic Environmental Research and Risk Assessment, 32(3), 749-770.

About

R-INLA code to fit spatio-temporal CAR models described in Goicoa et al. (2018, SERRA)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages