Extracted main text — title through conclusion, appendix excluded. This is what our citation measures are computed over, published so the extraction can be checked by eye.
66,888 characters · 14 sections · 38 citation commands
Heterogeneous Regression Models for Clusters of Spatial Dependent Data
Spatial regression models have been widely applied in many different fields such as environmental science hu2018stat, biological science zhang2011bayesian, and econometrics brunsdon1996geographically to explore the relation between a response variable and a set of predictors over a region. One of the most important tasks for a spatial regression model is to capture the spatial dependent structure between a response variable and a set of covariates. cressie1992statistics proposed a spatial regression model with Gaussian process, where the spatial random effects are accounted for only by the intercepts. brunsdon1996geographically proposed a geographically weighted regression (GWR) model which assumed the existence of a spatially-dependent parameter surface, and used weighted local linear regression to estimate such parameter surface. An application of GWR in analyzing the impact of socio-economic factors on treated prevalence for mental disorders in Barcelona is presented in peres2015applying. The idea of GWR has been subsequently extended to the Cox model framework by xue2018geographically. In addition to mean-based regression, chasco2015heterogeneity used a spatial quantile regression technique to identify heterogeneities. From the Bayesian perspective, gelfand2003spatial incorporated Gaussian process to regression coefficients to build a model with spatially varying coefficients. autantbernard2019heterogeneous used a Bayesian heterogeneous spatial autoregressive model that allows for spatial variation variations in intercepts, covariate effects, and noise variances to study the knowledge production functions of different regions in order to set up their regional innovation strategy. The aforementioned works, however, all assumed that each location has its own set of regression parameters, which sometimes leads to excessive numbers of parameters, and subsequently overfitting. Cluster effects over the space of interest has not been taken into account.
Detection of heterogeneous covariate effects in many different fields, such as real estate applications, spatial econometrics, and environmental science are becoming of increasing research interest. For example, administrative divisions in a country, such as regions, provinces, states, or territories, often have different economic statuses and development patterns. More advanced divisions and less developed divisions could be put into separate clusters and analyzed. Such clustering information is of great interest to regional economics researchers. One of the most popular methods for spatial cluster detection is the scan statistic method kulldorff1995spatial, where a scan statistic is constructed via a likelihood ratio statistic to test the potential clusters. The usage of spatial scan statistics has been extended to studies of disease mapping, crime, and public health. Similar endeavor has also been made under the Bayesian and nonparametric Bayesian frameworks in pursuit of spatial homogeneity. li2015bayesian used nonparametric Bayesian method to detect cluster boundaries for areal data. Noticing that traditional methods may not work well with spatial missing data, panzera2016bayesian proposed using multiple imputation together with the Bayesian Interpolation method to analyze spatially clustered missing data, which addresses both spatial univariate and multivariate problems.
Most of the aforementioned frequentist and Bayesian approaches mainly focus on estimating cluster configurations of spatial response. Spatially varying patterns in the relationship between a set of covariates and the response is also an important topic that needs to be studied. bille2017twostep used a two-step approach where in the first step, spatial regimes of spatially varying parameters are identified, and in the second step estimated. Recently, methods for cluster detection of spatial regression coefficients have been proposed to detect the homogeneity of the covariates effects among subareas. li2019spatial incorporated spatial neighborhood information in a penalized approach to detect spatially clustered patterns in the regression coefficients.
Under the Bayesian framework, lawson2014prior explored the usage of multinomial priors in modeling clustered coefficients in the accelerated failure time model for survival data. As discussed by lawson2014prior, to infer the grouping level, complicated search algorithms in variable dimensional parameter space are needed, such as the reversible jump Markov chain Monte Carlo (MCMC) algorithm of green1995reversible, which assigns a prior on the number of clusters, and this number is updated at each iteration of an MCMC chain. Such algorithms are difficult to implement and automate, and are known to suffer from lack of scalability and mixing issues. Nonparametric Bayesian approaches, such as the Dirichlet process mixture model ferguson1973bayesian, offer choices to allow for uncertainty in the number of clusters, and provide an integrated probabilistic framework under which the number of clusters, the clustering configuration, and regression coefficients are simultaneously estimated.
In this paper, we propose a Bayesian spatial clustered linear regression model with {\textcolor{black}{Dirichlet process}} ferguson1973bayesian prior, which considers spatially dependent structure and clusters the covariate effects simultaneously. In addition, implementation of our proposed methods based on nimble de2017programming, a relatively new and powerful R package, is discussed. The model diagnostic technique, logarithm of the pseudo-marginal likelihood ibrahim2013bayesian, is introduced to assess the fitness of our proposed model. Our proposed Bayesian approach reveals interesting features of the state-level data of Georgia.
The remainder of the paper is organized as follows. In Section (ref), we develop a spatial clustered linear regression model with DP prior. In Section (ref), a MCMC sampling algorithm based on nimble and post MCMC inference are discussed. Extensive simulation studies are carried out in the next section. For illustration, our proposed methodology is applied to Georgia housing cost dataset in Section (ref). Finally, we conclude this paper with a brief discussion.
In this section, a Bayesian spatial clustered linear model using {\textcolor{black}{DPMM}} is proposed for coefficient grouping in spatially dependent data. Based on the spatial regression model, spatially-varying coefficients are assigned with a nonparametric {\textcolor{black}{DP}} prior to achieve the goal of grouping.
The basic geostatistical model gelfand2016spatial for spatially dependent response at locations $\bm{s} = (s_1,\ldots, s_n)$ is denoted by
{\textcolor{black}{where $\bm{Y} = (Y(s_1),\ldots, Y(s_n))$ the $n$-dimensional vector of responses observed at the $n$ different locations, $\bm{X} =
$ is the~$n\times p$ matrix of covariates, $\bm{w} = (w(s_1),\ldots, w(s_n))$ is the vector of spatial random effects, which is assumed to follow a stationary Gaussian process whose covariance structure often depends on the geographical locations, and $\bm{\epsilon}\simMVN(\bm{0}, \sigma^2_y \bm{I})$}} adds the nugget effect \citep[{\textcolor{black}{see}} e.g., Chapter~6 of][]{carlin2014hierarchical}, which is usually a vector of white noise, {\textcolor{black}{with MVN denoting the multivariate normal distribution.}} Oftentimes,~$\bm{w}(\bm{s})$ is assumed to also follow a MVN. The above spatial regression model can also be rewritten as
where $\bm{\Sigma}_W$ {\textcolor{black}{is the covariance matrix of the spatial random effect vector $\bm{w}(\bm{s})$}}, and $\bm{I}$ denotes the identity matrix. Conditional on $\bm{X}$ and $\bm{w}$, entries in $\bm{Y}$ are independent. Conventionally, the covariance matrix is given as $\bm{\Sigma}_W = \sigma_w^2 \bm{H}$, where $\bm{H}$ is a matrix constructed using the great circle distance matrix, denoted as GCD, between different locations, i.e.,
and $\sigma_w^2$ is a scalar. There are three common weighting schemes for {\textcolor{black}{defining}} $\bm{H}$, including:
where $\phi$ is a tuning parameter that controls the spatial correlation. Larger value of $\phi$ indicates stronger correlation.
Another spatial regression model is the spatially varying coefficients model gelfand2003spatial:
where $X(s)$ is $p \times 1$ covariate vector at {\textcolor{black}{a certain}} location $s$, and $\widetilde{\bm{\beta}}(s)$ is assumed to follow a $p$-variate spatial process model. If we have observations $(Y(s_i),\bm{X}(s_i))$ for $i=1,\ldots, n$, they can be written into
where $\bm{Y}=(Y(s_1), \ldots, Y(s_n))^\top$, $\bm{X}^\top$ is an $n\times (np)$ block diagonal matrix which has the row vector $\bm{X}^\top(s_i)$ as its $i$-th diagonal entry, $\widetilde{\bm{\beta}} = (\widetilde{\bm{\beta}}(s_1)^\top, \ldots, \widetilde{\bm{\beta}}(s_n)^\top)^\top$, and $\bm{\epsilon}\sim \mbox{MVN}(\bm{0},\sigma^2\bm{I})$. gelfand2003spatial proposed the following hierarchical model:
where $\bm{\mu}_{\bm{\beta}}$ is a $p \times 1$ vector, $\bm{H}(\phi)$ is a $n\times n$ matrix measuring spatial correlations between the $n$ observed locations, $\bm{T}$ is a $p \times p$ covariance matrix associated with an observation vector at any spatial location, and $\otimes$ denotes the Kronecker product. {\textcolor{black}{In model (ref), $\bm{\beta}$ is constant over space, which means the covariate effects remain the same over all locations; model (ref) allows for different covariate effects over locations, but restrict the covariate effects to be determined by distances between pairs of locations as in (ref).}}
For many spatial economics data, however, some regions will share similar covariate effects regardless of their geographical distance. Taking China as an example, Beijing tends to have similar economic development pattern with Shanghai or Jiangsu ma2019nonparametric . The models in (ref) and (ref), however, do not take into account such inherent similarities in spatially dependent data.
Within the Bayesian framework, coefficient clustering can be accomplished using a Dirichlet process mixture model (DPMM) by nonparametrically linking the spatial response variable to covariates through cluster membership. Formally, a probability measure $G$ following a DP with a concentration parameter $\alpha$ and a base distribution $G_0$ is denoted by $G \sim \text{DP}(\alpha, G_0)$ if
where $(A_1, \cdots, A_r)$ are finite measurable partitions of the space $\Omega$. Several different formulations can be used for determining the DP. In this work, we use the stick-breaking construction proposed by sethuraman1994constructive for DP realization, which is given as
where $\theta_c$ is the $c$-th vector consisting of the possible values of the parameters of $G_0$, $\delta_{\theta_c}(\cdot)$ denotes a discrete probability measure concentrated at $\theta_c$ and is a notation short for $\delta(\theta = \theta_c)$, $\pi_c$ is the random probability weight between 0 and 1, and $\overset{\mbox{ind}}{\sim}$ indicates i.i.d..
For a DPMM, the observed data $y_i$ (for $i=1,\ldots, n$) follow an infinite mixture distribution, where a vector of latent allocation variables $\mathcal{Z}$ is introduced to enable explicit characterization of the clustering. Let $\mathcal{Z}_{n, k} = \big\{(z_1, \ldots, z_n) : z_i \in \{1, \ldots, k\}, 1 \le i \le n \big\}$ denote all possible clusterings of $n$ observations into $k$ clusters, where $z_i = c \in \{1, \ldots, k\}$ denotes the cluster assignment of the $i$th observation. Note that although theoretically $c$ can go to infinity, in practice, with $n$ observations in total, $k$ is capped at $n$, which can only happen when each observation is assigned to its own cluster. The DPMM can be written as
where $\bm{\pi} = (\pi_1,\ldots, \pi_c, \ldots)$. Adapting the DPMM to the spatial regression setting, we focus on the clustering of spatially-varying coefficients $\bm{\beta}(s) = (\bm{\beta}^\top(s_1), \cdots, \bm{\beta}^\top(s_n))^\top$, where $\bm{\beta}(s_i)$ is the $p$-dimensional coefficient vector for location $s_i$. In our setting, we assume that the $n$ parameter vectors can be clustered into $k$ groups, i.e., $\bm{\beta}(s_i) = \bm{\beta}_{z_i}\in\{\bm{\beta}_1,\ldots, \bm{\beta}_k\}$, then the model can be written as
MCMC is used to draw samples from the posterior distributions of the model parameters. In this section we present the sampling scheme, the posterior inference of cluster belongings, and measurements to evaluate the estimation performance and clustering accuracy.
We present the main R function written using the nimble package de2017programming. The model is wrapped in a nimbleCode() function. For ease of exposition, we break it into separate snippets. The full code is available on GitHub with an example implementation. (link removed for blinding purposes, documentation submitted separately)
Define {\textcolor{black}{S}} as the number of locations. The following code represent Equation (ref). At each location, {\textcolor{black}{y[i]}} has a normal distribution with {\textcolor{black}{mu_y[i]}} and precision {\textcolor{black}{tau_y}}, which is equivalent to $1/\sigma_y^2$. A Gamma(1,1) prior is given to {\textcolor{black}{tau_y}}. The coefficient vector for location {\textcolor{black}{i}}, {\textcolor{black}{\texttt{b[i, 1:6]}}}, equals the coefficient vector estimated for the cluster it belongs to, represented by {\textcolor{black}{\texttt{latent[i]}}}, which follows a multinomial distribution with probability vector {\textcolor{black}{\texttt{zlatent[1:M]}}}, where {\textcolor{black}{\texttt{M}}} denotes the number of potential clusters.
{{0cm} The following code represent Equation (ref). {\textcolor{black}{H}} represents the matrix $\Sigma_W$, where {\textcolor{black}{phi}} is {\textcolor{black}{the}} tuning parameter $\phi$ in the exponential scheme in (ref) that controls spatial correlation. The random effects at locations 1 to {\textcolor{black}{S}} follow a multivariate normal distribution with {\textcolor{black}{mu_w[1:S]}} and precision matrix, which equals the product of $\sigma_w^2$, {\textcolor{black}{tau_w}}, and the inverse of {\textcolor{black}{H}}. {\textcolor{black}{\texttt{H}}} is defined as a function of a certain distance matrix {\textcolor{black}{\texttt{Dist}}}, which is passed into the function later as an argument of {\textcolor{black}{\texttt{SLMMConsts}}}. Here, the function is chosen to be the exponential scheme. The prior distribution of the bandwidth {\textcolor{black}{\texttt{phi}}} is specified to be a uniform distribution from 0 to a certain upper limit, denoted by {\textcolor{black}{\texttt{D}}}. The prior of {\textcolor{black}{\texttt{tau_w}}} is set to Gamma(1,1).}
{{0cm} The distribution of $\bm{\beta}$ for each location $s_i$ is defined next. They each come from a multivariate normal distribution with mean {\textcolor{black}{mu_bm}} and covariance matrix {\textcolor{black}{var_bm}}, which is a diagonal matrix with all diagonal entries being {\textcolor{black}{1/tau_bm}}. The inverse variance term, {\textcolor{black}{tau_bm}}, is again given a Gamma(1,1) prior, and the entries in the mean vector are all given independent standard normal priors. }
{{0cm} Finally for the model, the stick breaking process corresponding to Equations (ref) and (ref) is depicted.}
{{0cm} With the full model defined, we next declare the data list, which is made up of the response {\textcolor{black}{Y}}, the covariates {\textcolor{black}{X[,1] to {\textcolor{black}{X[,6]}}}}{X[,6]}}}, and the matrix of distances {\textcolor{black}{Dist}}. The constants in the model also need to be supplied, including the number of locations {\textcolor{black}{S}}, the number of starting clusters {\textcolor{black}{M}}, and the upper endpoint {\textcolor{black}{\texttt{D}}} for the uniform distribution of bandwidth. In addition, the initial values are specified. Code to compile the model, supply the initial values, and invoke the MCMC process is included in the supplementary package.}
The estimated parameters, together with the cluster assignments $\bm{z}$, are determined for each replicate from the best post burn-in iteration selected using the Dahl's method dahl2006model. dahl2006model proposed a least-square model-based clustering for estimating the clustering of observations using draws from a posterior clustering distribution. In this method, membership matrices for each iteration, $\bm{B}^{(1)},\ldots,\bm{B}^{(M)}$, where $M$ is the number of post-burn-in MCMC itertations, are calculated. The membership matrix for the $c$th iteration, $\bm{B}^{(c)}$ is defined as:
with $1()$ being the indicator function, $\bm{B}^{(c)}(i,j) \in \{0,1\}$ for all $i,j = 1,...,n$ and $c=1,\ldots, M$. Having $\bm{B}^{(c)}(i,j)=1$ means observations $i$ and $j$ are in the same cluster in the $c$th iteration. The average of $\bm{B}^{(1)},\ldots, \bm{B}^{(M)}$ can be calculated as
where $\sum$ here denotes element-wise summation of matrices. The $(i,j)$th entry of $\overline{\bm{B}}$ provides an empirical estimate of the probability for locations $i$ and $j$ to be in the same cluster.
Next we find the iteration that has the least squared distance to $\overline{\bm{B}}$ as:
where $\bm{B}^{(c)}(i,j)$ is the ($i,j$)th entry of $\bm{B}^{(c)}$, and $\overline{\bm{B}}(i,j)$ is the ($i,j$)th entry of $\overline{\bm{B}}$. An advantage of the least-squares clustering is the fact that information from all clusterings are utilized via the usage of the empirical pairwise probability matrix $\overline{\bm{B}}$. It is also intuitively appealing, as the average clustering is selected instead of formed via an external, ad hoc clustering algorithm.
In the spatial regression model, the Gaussian process spatial structure {\textcolor{black}{$\bm{\Sigma_W} = \sigma_w^2 \bm{H}$}} can be constructed via several different weighting schemes including the aforementioned unity, exponential, and Gaussian schemes in (ref). In order to determine which weighting scheme is the most suitable for the data, a commonly used model comparison criterion, the logarithm of the pseudo-Marginal likelihood ibrahim2013bayesian, is applied. The LPML can be obtained through the conditional predictive ordinate (CPO) values. With $Y^*_{(-i)} = (Y_1,\ldots, Y_{i-1}, Y_{i+1},\ldots, Y_n)$ denoting the observations with the $i$th subject response deleted, CPO can be regarded as leave-one-out-cross-validation under Bayesian framework, and it estimates the probability of observing $Y_i$ in the future if after having already observed $Y^{*}_{(-i)}$. The CPO for the $i$th subject is calculated as:
where
and $c(Y^*_{(-i)})$ is the normalizing constant. Within the Bayesian framework, a Monte Carlo estimate of the CPO can be obtained as:
where $w_t(s_i)$ is calculated based on the sampled $\phi$ in the $t$-th iteration, and $\bm{\beta}_t(s_i)$ and $\sigma_{yt}^2$ are, respectively, the $t$-th iteration samples for $\bm{\beta}(s_i)$ and $\sigma_y^2$. An estimate of the LPML can subsequently be calculated as:
A model with a larger LPML value is preferred. In addition, $p_D$, the effective number of parameters, which can be used to measure the complexity of the model, is defined as
where $D = -2 \log f(\bm{y}(\bm{s})\mid\boldsymbol{\theta})$ is the deviance of the model, $\overline{D}$ is the posterior mean of deviance, $\overline{\boldsymbol{\theta}}$ is the posterior mean of the parameters and $D(\overline{\boldsymbol{\theta}})$ denotes deviance at posterior means.
We use the Rand index rand1971objective to measure the accuracy of clustering. The RI is defined as
where $\mathcal{C}_1 = \{ X_1, \ldots, X_r \}$ and $\mathcal{C}_2 = \{Y_1, \ldots, Y_s\}$ are two partitions of $\{ 1, 2, \ldots, n\}$, and $a, b, c$ and $d$ respectively denote the number of pairs of elements of $\{1, 2, \ldots, n\}$ that are (a) in a same set in $\mathcal{C}_1$ and a same set in $\mathcal{C}_2$, (b) in different sets in $\mathcal{C}_1$ and different sets in $\mathcal{C}_2$, (c) in a same set in $\mathcal{C}_1$ but in different sets in $\mathcal{C}_2$, and (d) in different sets in $\mathcal{C}_1$ and a same set in $\mathcal{C}_2$. The RI ranges from 0 to 1 with a higher value indicating better agreement between the two partitions. In particular, $\mathrm{RI} = 1$ indicates that $\mathcal{C}_1$ and $\mathcal{C}_2$ are identical in terms of modulo labeling of the nodes.
In this section, we conduct simulation studies to assess the performance of the proposed methods under scenarios where there is no clustered covariate effect, and when there is indeed clustered covariate effect. All simulations are run on an institutional high performance computing cluster running Red Hat Enterprise Linux Server (release 6.7).
The spatial adjacency structure of counties in Georgia is used. As a starting point, to mimic the real dataset {\textcolor{black}{we use later}}, one observation is generated for each of the 159 counties. Six covariate vectors are generated for the 159 counties with each entry i.i.d. from $N(0,1)$, making a $159\times 6$ covariate matrix $\bm{X}$. The spatial random effects $\bm{w}$ are simulated based on the matrix of great circle distance (GCD) between county centroids. The great circle distances are obtained using the function distCosine(), and the centroids are calculated based on county polygons using the function centroid(), both provided by the R package geosphere Rpkg:geosphere. The GCD matrix is subsequently normalized to have a maximum value of 10 for ease in computation. and the response vector $\bm{Y}$ is generated as
where $\bm{X} = (X_1,\ldots, X_6)$, $\bm{w}\sim \text{MVN}(\bm{0}, \exp(-\mbox{GCD}/4))$, and $\bm{\epsilon} \sim \mbox{MVN}(\bm{0},\bm{I})$. Different values of $\bm{\beta}$ are used: $(1, 0, 1, 0, 0.5, 2)^\top$, $(2, 0, 1, 0, 4, 2)^\top$, and $(9, 0, -4, 0, 2, 5)^\top$, corresponding to scenarios where the signal is weak, moderate, and strong. For each of the three $\bm{\beta}$'s, the average parameter estimate denoted by $\overline{\widehat{\beta}}_{\ell,m}$ ($\ell = 1,\cdots,159$; $m=1,\cdots, 6$) in 100 simulations is calculated as
where $\widehat{\beta}_{\ell,m,r}$ denotes the posterior estimate for the $m$th coefficient of county $\ell$ in the $r$th replicate. The performance of these posterior estimates are evaluated by the mean absolute bias (MAB), the mean standard deviation (MSD), the mean of mean squared error (MMSE) and mean coverage rate (MCR) of the 95% highest posterior density (HPD) intervals in the following ways:
In each replicate, the MCMC chain length is set to be 50,000, with thinning 10 and the first 2,000 samples are discarded as burn-in, therefore we have 3,000 samples for posterior inference. The parameter $D$ for the uniform prior of bandwidth, i.e. $\phi$ in Equation (ref), is set to 100 such that the prior for bandwidth is also noninformative. In Table (ref) the average parameter estimates $\overline{\widehat{\beta}}_{\ell,m}$ are reported together with the four performance measures in Equations (ref),(ref), (ref) and (ref) are reported for the three settings. Under all three settings, the parameter estimates are highly close to the true underlying values, and have very small MAB, MSD and MMSE, while maintaining the MCR at close to 95% level. The RI's are all very close to or equal to 1, indicating that the clustering results are highly consistent and credible. It is worth noticing that, even when the signal is relatively weak, the clustering approach is quite precise.
We consider an underlying setting where there exist clustered covariate effects. First we consider a setting where the clustered covariate effect is independent of spatial locations, i.e. where cluster belonging are set randomly. The 159 counties are randomly assigned to three clusters, visualized in Figure (ref)(a). There are, respectively, 51, 49, and 59 counties in the three clusters. Different parameter vectors are used for data generation in different clusters (see Table (ref)) to assess the estimation and clustering performance under different strengths of signals. The spatial random effect $\bm{W}$ is generated using the same setting as before. The performance measures are presented in Table (ref). In another scenario, a setting where the clustered covariate effect depends on spatial locations. Consider a partition of Georgia counties into three large regions, visualized in Figure (ref)(b). The same parameter vectors in Table (ref) are used for the three clusters under three settings. Corresponding performance measures are reported in Table (ref).
For each signal strength and each of the two settings, we randomly selected four replicates from the total of 100 replicates and visualize the results in the Online Supplement. It is no surprise that under both settings, the accuracy of clustering increases with the strengthening of signals. It can be seen from Supplemental Figures 1 and 4 that with weak true signals, the proposed approach suffers from over-clustering, which is a known property of Dirichlet process mixtures that the posterior does not concentrate at the true number of clusters miller2013simple. This over-clustering behavior, however, diminishes as the signals' strength increase. When the signals are strong, the RI reaches near 0.85, indicating that 85% of the time, two counties that belong to the same cluster are correctly put into the same cluster. Together with increase in RI is decrease in MCR, which is an inevitable result of incorporating more counties in each cluster. For each county, taking other counties that do not belong to this county's true cluster introduces bias in estimation.
We consider analyzing influential factors for monthly housing cost in Georgia using the proposed methods. The dataset is available at \url{www.healthanalytics.gatech.edu}, with 159 observations corresponding to the 159 counties in Georgia. For each county, the dependent variable median monthly housing cost for all occupied housing units is observed. The independent variables considered here include: the percentage of adults aged 18 to 64 who are unemployed ($X_1$), the average total real and personal property taxes collected per person ($X_2$), the median home market value ($X_3$, in thousand dollars), the percentage of White race population ($X_4$), the median age ($X_5$), and size of a county's population ($X_6$, in thousands). Figure (ref) provides a visualization of the 6 covariates on the Georgia map. In the computation, the covariates are centered and scaled to have mean 0 and unit standard deviation. Also, following the common practice in economics to account for long-tailed distributions, we take the logarithm of monthly housing cost before fitting the model. The response variable is also centered and scaled, and therefore all models to follow are fitted without the intercept term.
We firstly apply the model assessment criteria, LPML, for selecting the best weighting scheme for the data. The LPML values for the unity weighting scheme, the exponential weighting scheme and the Gaussian weighting scheme are shown in Table (ref). From Table (ref) we can see that the model with exponential weighting scheme has the largest LPML value among the three candidate schemes, and is therefore preferred. To verify that there is indeed spatially varying covariate effects, we also fitted the spatially-varying coefficients model without clustering (ref) to the dataset. The model is also compared against a vanilla Bayesian regression, {\textcolor{black}{where no spatial effect is considered, and observations are treated as i.i.d. samples from the population. In this model, no spatial variation is assumed in the covariate effects $\bm{\beta}$, and the model reduces to the regular Bayesian linear regression.}}
The computation is performed on a desktop computer running Windows 10 Enterprise, with i7-8700K CPU @ 3.70GHz. The computing time as well as performance measure for these three models are recorded and presented in Table (ref). The proposed model takes around 650 seconds to run, followed by the spatially varying coefficients model, and then the spatially constant coefficients model. The LPML values of the first two models that allow for spatially varying coefficients are larger than the vanilla regression model, and the differences are not minor. This indicates that there indeed exist spatially varying covariate effect, and more flexible models are preferred. Comparing the LPML and $p_D$ for the first two models, it can be seen that the proposed model reduces $p_D$ and provides better fit to the data. Combining the conclusions from Tables (ref) and (ref), the proposed model with exponential weighting scheme for $\bm{W}(s)$ is fitted on the dataset.
A total of 3 clusters are identified. The cluster belongings of the 159 counties are visualized in Figure (ref), and their corresponding parameter estimates are presented in Table (ref). From Figure (ref) we can find that the cluster distribution is more similar with the spatial distributions of the covariates population size and median home market price. These two covariates also show great impact on cluster 1, the largest cluster we obtained from the model. For cluster 1, which includes most of the counties (124 out of 159), higher unemployment rates, higher median home market value, and larger population sizes are significant indicators of higher housing costs. For cluster 2 (26 out of 159), median home market value is also positively correlated with the monthly housing cost, while higher median age indicates lower housing cost. For cluster 3 (9 out of 159) median home market value turns out to be the only decisive factor and has significant increasing effect for housing cost. These results indicate that for most counties of Georgia, unemployment rates, median home market value and population size drive the variation of housing costs greatly. However, not all the counties have the same pattern. Housing costs of some counties are affected by median home market price and median age instead, and for a few counties, the housing costs are related to median home market value instead of the other covariates. This example here verifies the fact that the proposed model can detect the spatial clusters which share similar covariate effects.
In this paper, we have proposed a Bayesian clustered coefficients linear regression model with spatial random effects to capture heterogeneity of regression coefficients. Multiple weighting schemes in modeling the spatial random effects have been proposed, and the corresponding Bayesian model selection criterion have been discussed. Compared to a vanilla regression model with no spatial random effect, allowing the covariate effects to be spatially varying provides better fit to the data, and more profound insight into heterogeneity in development at different locations. In addition, compared to observations made in ma2019bayesian, where each location is allowed to have its own set of parameter estimates, the clustering approach reduces the effective number of parameters without sacrificing the model goodness-of-fit. The usage of the method is illustrated both in simulation studies and an application to analysis of impacting factors for housing cost in Georgia.
A few topics beyond the scope of this paper are worth further investigation. In this paper, we only considered the full model that includes all covariates. Appropriate approaches for variable selection under a clustered regression context is worth investigating. The DPMM is used to get clustering information of regression coefficients. The posterior on the number of clusters is not consistent based on the DPMM. Such pattern have been observed in both our simulation studies, where there are some small clusters which only contain a few counties. Proposing a consistent prior geng2019probabilistic,hu2020bayesian for clustered regression coefficients is an important future work. In addition, extending our approach in non-gaussian model is an interesting topic. Considering spatial dependent structure for the regression coefficients zhao2020bayesian is devoted to future research.