Abstract
Bayesian disease mapping, yet if undeniably useful to describe variation in risk over time and space, comes with the hurdle of prior elicitation on hard-to-interpret random effect precision parameters. We introduce a reparametrized version of the popular spatio-temporal interaction models, based on Kronecker product intrinsic Gaussian Markov random fields, that we name the variance partitioning model. The variance partitioning model includes a mixing parameter that balances the contribution of the main and interaction effects to the total (generalized) variance and enhances interpretability. The use of a penalized complexity prior on the mixing parameter aids in coding prior information in an intuitive way. We illustrate the advantages of the variance partitioning model using two case studies.
Keywords
Introduction
The Covid-19 pandemic has put the world at stake. In Italy, the first two cases were confirmed on 31 January 2020 and on 9 March 2020 a national lockdown was put in place by the authorities to control and reduce the expansion of the virus. Data on newly infected people have been routinely collected since then to monitor the evolution of the disease. The study of the pandemic evolution can be tackled using disease mapping. Knowledge of how the infection has spread can help to evaluate the performance of containment measures. In particular, the quantification of the space–time interaction, which describes how the spatial patterns change over time, has been proposed as a way to deepen our understanding on the evolution of the disease. 1
Disease mapping models2–5 aim to describe the variation in risk of a particular disease over space and time. Data are usually available in the form of aggregated counts at some spatial level, such as counties, municipalities, etc. Additive time and space models have been long used to model disease rates. 6 More recently, the availability of complex data has made it possible to consider more complex models that include an interaction term to appropriately capture space–time relationships in the data (see, e.g. Abellan et al., 7 Knorr-Held, 8 Waller et al., 9 Bernardinelli et al., 10 to cite a few). Understanding the spatial distribution of disease risk or how it has evolved over time might be useful for public health authorities in planning resource allocation and identification of areas to be prioritized. In particular, the space–time interaction may reveal important information regarding the nature of the disease, for example, suggesting whether a new disease is possibly infectious 11 or the existence of additional causes in non-infectious cases. 12 Thus a model that is able to quantify the importance of this term is desirable from a practical point of view; in this paper, we introduce a model parametrization that partitions the total variance into main and interaction effects so that the contribution of each of those can be quantified.
Crude disease rates are unreliable due to sampling variability so smoothing is used to borrow information across neighbouring areas and time points. For this reason, disease mapping has been developed mainly in a Bayesian hierarchical model formulation where the building blocks of a smooth in one and more dimensions can be modelled using intrinsic Gaussian Markov random fields (IGMRFs) such as the first- and second-order random walk (RW1 and RW2) 13 or the intrinsic conditional autoregressive (ICAR) 14 models. For modelling interactions, statisticians have used tensor products smoothers, where, in a Bayesian framework, the penalty can be seen as a special type of Gaussian Markov random field (GMRF) called Kronecker product GMRF. 15
In Bayesian spatio-temporal disease mapping, the precision parameter of the IGMRFs plays a role in controlling the degree of smoothing applied over time and space. A number of issues related to prior elicitation need to be addressed when dealing with intrinsic models. Firstly, the precision matrix is singular, which means that the total variance that we aim to partition is not finite. To define priors on the variance components, we can rely upon the concept of generalized variance of an IGMRF; this has been defined by Sørbye and Rue 16 as the geometric mean of the diagonal elements of the generalized inverse of the precision matrix of the IGMRF, and can only be computed upon linear constraints.
A second issue to bear in mind is that the generalized variance of an IGMRF depends on the structure matrix, and hence it changes depending on things such as the temporal and spatial resolution or the size of the dataset at hand. This means that interpretation of the precision parameter becomes case-dependent, making prior elicitation and parameter interpretation difficult. To avoid this problem, Sørbye and Rue 16 advise scaling the structure matrix so that the generalized variance is equal to 1; this way the precision parameter is automatically rescaled and the prior has the same meaning regardless of the graph structure. 17 Scaling becomes particularly relevant in the context of space–time models, as otherwise differences in the structure matrices of the spatial, temporal and spatio-temporal terms would have an impact on the priors for the corresponding precision parameters that we cannot control. By scaling the structure matrix of the temporal and spatial random effects, the structure matrix of the interaction, defined as a Kronecker IGMRF, is automatically scaled.
Further to the issues mentioned above, the choice of priors for variance parameters has received much attention in the literature.18,5,19,20 Part of the hassle in choosing a prior stems from the difficulty of interpreting variance parameters, especially for intrinsic processes, where the standard deviation is to be interpreted as a conditional one.19,21 On top of that, in models with various terms, the tendency is to set priors independently for each precision parameter, while some authors are beginning to recognize that it might be more practical to think about total variability and how each term in the model contributes to that rather than to concentrate on single variance components separately.5,21–23 In the context of disease mapping, Wakefield 5 proposes using an inverse Gamma prior on the total variability, along with a Beta prior that distributes the variance between a spatially correlated random field and a spatially unstructured effect (the so-called Besag–York–Mollie (BYM) model 24 ). Using a similar parametrization, Riebler et al. 21 present a prior that shrinks towards no spatial effect following the penalized complexity (PC) prior approach of Simpson et al. 20 Outside the disease mapping literature, Ventrucci et al. 23 develop a PC prior in one-factor mixed models for the relative contribution of group-specific variability. In a more general context, Fuglstad et al. 22 introduce a framework for hierarchically distributing the variance in additive models, where, at each level of the total variance decomposition, ignorance or preference about the variance contribution of a term is expressed via a Dirichlet or a PC prior, respectively. We add to the literature by considering also the temporal dimension in disease mapping models. In particular, all the terms in the model (main effects and interaction) are assumed to follow intrinsic models. This differentiates our work from the literature mentioned above.
In this work, we revisit the spatio-temporal models proposed by Knorr-Held, 8 where the space–time interaction term can be one of four different types, depending on the degree of dependence assumed between time and space. These four types are characterized by different prior assumptions, expressed in terms of a Kronecker product. We propose an intuitive reparametrization that leads to partitioning the generalized variance between the main effects and interaction. The main and interaction effects are not independent, and hence using a joint prior on those terms is preferable. We do so by including a mixing parameter that (1) easies interpretation and (2) naturally leads to a prior that is intuitive to elicit. One of the advantages of the Bayesian framework is that whenever information on the disease process is available, it can be encoded into the prior. 12 Often, the epidemiologist might have an intuition on how important the interaction term is in explaining the spatio-temporal variation of a particular disease. However, translating this information in terms of a precision parameter is not trivial at all. We follow the PC prior framework of Simpson et al. 20 to derive a prior for the mixing parameter that avoids overfitting by construction and allows the user to code any prior information easily. This way we alleviate both problems, by considering an interaction model that not only enhances interpretability but also permits a more intuitive construction of the prior. We call this reparametrized version the variance partitioning (VP) model. The proposed methodology is applicable to any of the four space–time interactions described in Knorr-Held. 8
The rest of the paper is organized as follows. Section 2 covers spatio-temporal disease mapping models, with a particular emphasis on the space–time interaction framework by Knorr-Held, 8 followed by a brief discussion of priors for variance parameters with special attention to the PC prior approach. In Section 3, the VP model is described in detail and the PC prior for the mixing parameter is presented, while the technical details are relegated to the supplementary material. Section 4 illustrates the proposed model on two case studies, a well-known example in the disease mapping literature and an Italian Covid-19 dataset. The paper closes with a discussion in Section 5.
Spatio-temporal disease mapping
Consider data on
The four types of interactions in spatio-temporal smoothing according to Knorr-Held.
8
The IGMRF on the interaction parameter vector
IGMRF: intrinsic Gaussian Markov random field; RW: random walk.
Let
where
Following Rue and Held,
15
we define an IGMRF of order 1 as an improper GMRF where
An IGMRF of order 2 is an improper GMRF whose precision matrix is singular and its null space is spanned by a constant vector
All the IGMRFs described above have in common that their precision matrix can be written as
It is common in the disease mapping literature to consider one or both main effects
We describe now the interaction term
Model (1) includes different precision parameters
Priors for the precision parameters
There are two main challenges in prior choice for the precision parameters in model (1). The first problem regards the so-called scaling issue that affects IGMRFs in general; Sørbye and Rue
16
proposed addressing this issue by scaling the precision structure
The second challenge regards the structure of the Kronecker product IGMRF, which can be thought of as an extra layer of flexibility on top of the main effects model. The common practice is to set independent priors on each precision parameter, but this totally disregards the model structure. Popular choices are Gamma for
In Section 3, we propose a novel modelling framework where the interaction is seen as a flexible extension of the main effects model, and the prior is set so that the interaction term shrinks to the main effects following the PC prior framework. Recently, PC priors have been proposed as a way to prevent overfitting, based on four simple principles, that we briefly summarize and illustrate below for the precision parameter
Let Parsimony: the prior for The increased complexity of The PC prior is defined as an exponential distribution on the distance: The parameter
We present below the VP model assuming model (1), but everything applies straightforwardly to model (2) as well; details about the VP version of model (2) can be found in Section 4.
From model (1) it is hard to quantify the relative contribution of the main and interaction components to the total variance, because the involved precision parameters are not interpretable in terms of the variance explained by the associated components. Our proposal is to reparametrize model (1) as a weighted sum of two IGMRFs representing the main and interaction components by means of a mixing parameter
Model (4) includes the same vectors of random effects as model (1), but in contrast to model (1), we now have very intuitive hyperparameters:
We need to assign priors to the overall precision parameter
Our choice of a PC prior for
Let us assume a model of the form (4), for all types of interaction in Table 1:
The distance from the base model is The PC prior for
The proof can be found in Supplemental material 1.1 to 1.3.
The scaling of the PC prior for

Left panel: penalized complexity (PC) prior
Results from a simulation study reported in Supplemental material 2 indicate that the posterior mean estimates of
As introduced in Section 2, model (2) is more common in practice and indeed it is the model adopted in this section for both case studies. In the case of structured and unstructured main effects, another set of parameters
Note that the parameters in model (6) are identifiable as the model is just a reparametrized version of the classic space–time interaction model (2), where each random effect has its corresponding precision parameter. The number of parameters is exactly the same; in fact, it can be shown that there is a one-to-one mapping between the parameters of both versions of the model. As in model (1), appropriate constraints need to be imposed to ensure identifiability of the terms in (6). The constraints on the interaction term are summarized inTable 1, while on the temporal and spatial structured main effects it is enough to impose a sum to zero constraint.
In the next two examples, we use the PC prior in equation (3) for
All the VP models presented in the next two examples were run using
We illustrate our model using the Ohio lung cancer data,8,6,9 which is available at http://www.biostat.umn.edu/~brad/data2.html. These data report yearly counts of lung cancer deaths for white males from 1968 to 1988, in the 88 counties of Ohio. Figure 2 left panel displays the time series of mortality rate for all counties. Our aim is not to find the best model for this data, but to show what our approach can add in terms of interpretability of the results compared to a classical analysis as performed in Knorr-Held. 8

Top left panel: time series of lung cancer (white males) disease rates per 10,000 population at risk, for the 88 counties in the Ohio dataset. Top right panel: temporally structured and temporally unstructured components for type I interaction model, in the scale of the linear predictor. Bottom left and right panels show, respectively, the spatially structured and unstructured components for the type I interaction model, in the scale of the linear predictor.
Let
Instead of working with the above model, we assume the VP model in equation (6), with scaled structure matrices, with the priors for
4.1.2 Results
Table 2 reports various model selection criteria for the VP model, for interaction types I, II, III and IV, namely deviance information criterion (DIC)
33
, Watanabe–Akaike information criterion (WAIC)
34
, leave-one-out log score (LOOLS), computed as
Model comparison criteria (computed using
VP: variance partitioning; logMLIK: log-marginal likelihood; LOOLS: leave-one-out log score.
To show now the gain of using our approach compared to a classical analysis, we start by discussing some plots obtained for type I interaction about the main effects. The top right panel in Figure 2 displays the estimated main temporal effect, in the scale of the linear predictor, decomposed into its structured and unstructured (iid) components. The unstructured effects look very flat compared to the structured ones which are probably responsible for most of the temporal variation in the relative risk. The relative risk increases roughly linearly in time, with a less steep increase towards the end of the time window. The bottom panels in Figure 2 display the estimated structured (left) and iid (right) spatial effects in the scale of the linear predictor. Here the unstructured effect shows larger variability than the structured one which shows a very smooth spatial gradient from northwest to southeast. A visual inspection of this sort, also possible when the classical model is used, gives useful insights into the spatial and temporal patterns in the data. However, it does not allow proper quantification of the variance attributable to the various sources (main, interaction, spatial and temporal effects, etc.), while this quantification is readily available from our VP model.
Table 3 reports the mean (with
Variance partitioning table for Ohio lung cancer, type I interaction. The column named Contribution reports the posterior mean of the hyper-parameters displayed in the column named Estimator, with 0.025 and 0.975 posterior quantiles between brackets. All values are in a
4.2 Covid-19 in Italy
We use the VP model to study Covid-19 incidence variations across space and time in Italy. Data cover all of the 107 Italian provinces and span a period of time that goes from the onset of the pandemic on 24 February 2020 to late July 2021 for a total of 70 weeks; the full dataset is made available by the Italian National Institute of Health through the website https://github.com/pcm-dpc/COVID-19. Data are originally available on a daily basis, but we aggregate them by week to smooth out artefactual patterns mainly due to delays in reporting new cases. The final dataset consists of weekly counts of new Covid-19 cases
Our goal is to analyse the sources of variation in Covid-19 incidence rates on a scale between 0 and 1, which is easy to interpret and visualize and provides a clear idea of the contribution of each source. We follow the ideas in Picado et al.
38
in considering the interaction term as a measure of local heterogeneity, which can be seen as an indirect measure of how effective the control measures are. Hence a primary interest is to quantify the contribution of the interaction to the total variability, that is, the posterior estimate for

Weekly Covid-19 incidence rates in the north (left panel), centre (central panel) and south (left panel) of Italy. The vertical dashed line marks the separation between the W1 and W2. W1: first wave; W2: second wave.
4.2.1 Model
We consider the binomial model in equation (7), where structured and unstructured random effects are specified for both space and time as main effects. We model the temporally structured effects as an RW1 (as we do not anticipate smoothness) and the spatially structured effects as an ICAR, and assume a type IV space–time interaction to capture potential complex space–time patterns, which are not explained by the main space and time components. In this particular example, the spatial main effect may reflect differences on the public health policy strategies adopted in each area (e.g. different testing rates across provinces). Again, we avoid the classic parametrization and take advantage of the VP approach described in (6). By doing so, we can elicit the prior easily and describe the various sources of variability in the data in an intuitive way in terms of the mixing parameters
The available information on the nature of the disease can be used to aid in parameter choice for the PC priors on
4.2.2 Results
The left panel in Figure 4 reports the variance partitioning plot for the full Covid-19 dataset; this plot is just a graphical version of the variance partitioning table that was presented in Table 3 for the Ohio lung cancer data. This plot resembles the graphs in Gelman
39
that summarize analysis of variance results in terms of estimated standard deviation for each bunch of random effects in the model. Our variance partitioning plot follows the same idea but represents the contribution of each source on a scale of

Variance partitioning plot for Covid-19 full dataset (left panel), W1 (middle panel) and W2 (right panel). The middle and right panels allow comparison across northern (black), central (green) and southern (red) areas in Italy. W1: first wave; W2: second wave.
The middle and right panels in Figure 4 report the variance partitioning plot for the models fitted to different subsets of the full dataset to investigate whether the spatio-temporal pattern in Covid-19 cases is consistent or not across geographical areas (N, C, S) and pandemic waves (W1, W2). It is interesting to see that the impact of the interaction term is greater in the W2 than in the W1 for all three areas, suggesting greater local heterogeneity during the W2. This could reflect the fact that restriction measures went from being national in the W1 to being regional in the W2, so we expect greater heterogeneity over space during the latter. Within the W1, the main effects are responsible for a greater proportion of variation in all three areas, but that attributable to the interaction is slightly greater in the South, followed by the North and then the Centre.
5 Discussion
In this paper, we revisit spatio-temporal disease mapping, with particular attention to the interaction models discussed in Knorr-Held,
8
and propose a new model that allows variance partitioning among the main effects and the space–time interaction. When defining priors on the hyperparameters that control the complexity of each intrinsic GMRF component, it is important to bear in mind that the main effects belong to the null space of the interaction term. This means that the interaction can naturally be regarded as an extension of the model including the main effects alone. This idea leads to a model reparametrization where a mixing parameter
The advantages of this reparametrization are twofold; on the one hand, prior choice can be made in an intuitive manner using a PC prior, avoiding the issue of eliciting priors on hard-to-interpret precision parameters. In space–time disease mapping, the nature of the disease can provide useful information to elicit the prior; for example, for non-infectious diseases such as the one considered in the first case study most of the variation is expected to be explained by the main effects.
7
This knowledge can be easily passed onto the PC prior for the mixing parameter
In a broader perspective, our work falls within the framework of variance distributing models as introduced by Fuglstad et al., 22 and adds to the literature in considering intrinsic GMRF models. The variance partitioning approach proposed here may be adopted in all those applications where intrinsic GMRFs are meant as tools to perform smoothing in more than one dimension; for instance, in the analysis of grid data such as those arising from agricultural field trials or spatio-temporal data from environmental studies and ecological surveys.
Footnotes
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship and/or publication of this article.
Funding
The author(s) received no financial support for the research, authorship, and/or publication of this article.
Supplemental Material
Supplemental material for this article is available online.
References
Supplementary Material
Please find the following supplemental material available below.
For Open Access articles published under a Creative Commons License, all supplemental material carries the same license as the article it is associated with.
For non-Open Access articles published, all supplemental material carries a non-exclusive license, and permission requests for re-use of supplemental material or any part of supplemental material shall be sent directly to the copyright owner as specified in the copyright notice associated with the article.
