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).
Female breast cancer mortality data (ICD-10 code 50) in Spanish provinces during the period 1990-2010.
-
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 adata.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.
- Data:
-
An inla.graph object with the spatial neighbourhood structure of the 50 provinces of Spain.
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.
-
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 theINLA::inla()
function. -
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. -
Script to analyse the results of previously fitted INLA models.
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).