Our methods have been described previously.
20 We identified potential outliers as observations with very large increases or decreases between consecutive measurements and removed observations that produced the greatest reduction in the sum of absolute consecutive differences resulting in removing approximately 0.5% of observations as outliers. We removed all observations for a single person in a single superpixel if we identified two or more outliers in that superpixel.
20 We then fit a Bayesian normal hierarchical random effects model using the JAGS package in R (
R2jags).
21,22 The current version of our Bayesian HSL model includes (a) a macula-wide global intercept and slope, (b) superpixel-specific intercept and slope deviations from the global intercept and slope (superpixel-level random effects), (c) macula-wide patient-specific intercept and slope effects (global patient random effects), (d) patient-superpixel specific intercept and slope random effects, and (e) macula-wide visit effects. Letting
yijk denote a single observation of GCC thickness (µm) for patient
i at time
tij in superpixel
k, the model is
\begin{eqnarray*}
{y}_{ijk} &=& \ {\mu }_0 + {\mu }_1{t}_{ij} + {\alpha }_{0k} + {\alpha }_{1k}{t}_{ij} + \ {\beta }_{0ik} + {\beta }_{1ik}{t}_{ij}\\ &&+\; {\phi }_{0{\rm{k}}} P{C}_{0i}\ + {\phi }_{1k}P{C}_{1i}{t}_{ij}\ + {\phi }_{2k}V{E}_{ij} + {\epsilon }_{ijk}
\end{eqnarray*}
\begin{eqnarray*}
{\epsilon }_{ijk}\sim N\left( {0,\ \sigma _k^2{\rm{exp}}\left( {P{C}_{2i}} \right)\ } \right),
\end{eqnarray*}
where µ
0 is the global macula-wide intercept; µ
1 is the global macula-wide slope; α
0k is the population average intercept in superpixel
k; α
1k is the population average slope in superpixel
k; β
0ik is the patient-superpixel intercept for the
ith patient; β
1ik is the patient-superpixel interaction slope for the
ith patient; ϕ
0k is the spatial effects eigenvector component for the patient-specific intercepts; ϕ
1k is the spatial effects eigenvector component for the patient-specific slopes; ϕ
2k is the spatial visit effects eigenvector component;
PC0i is the macula-wide patient-specific intercept random effect;
PC1i is the macula-wide patient-specific slope random effect;
PC2i is the macula-wide patient-specific log residual variance random effect;
VEij is the macula-wide visit random effect; the population component of the patient-superpixel log residual variance is
\(\log \sigma _k^2\). Our model uses novel, semi-parametric spatial effects for the intercept ϕ
0kPC0i, slope ϕ
1kPC1i, residual variance
\(\sigma _k^2{\rm{exp}}( {P{C}_{2i}} )\), and visit effects ϕ
2kVEij. In each component, terms with a
k subscript ϕ
0k, ϕ
1k,
\(\sigma _k^2\), and ϕ
2k define the spatial pattern of variation across the macula whereas the random effects
PC0i,
PC1i, exp(
PC2i), and
VEij are random patient effects, or visit effects, that indicate how much patient
i's observations deviate from the population averages. Each of these four terms are factor analytic models with one factor each where the ϕ
0k, ϕ
1k,
\(\sigma _k^2\), and ϕ
2k are called
loadings and the random effects are also called
factors.
23 Superpixel-specific population intercepts and slopes are the sum of the macula-wide global intercept and slope plus the superpixel-specific intercept and slope deviations. Similarly, a superpixel-patient slope (intercept) is the sum of (a), (b), (c), and (d): the sum of the macula-wide global slope (intercept), superpixel-specific slope (intercept), the macula-wide patient-specific intercept slope (intercept), and the patient-superpixel specific slope (intercept) random effect. Patient-superpixel log residual variances are modeled as the sum of a superpixel component and a patient-specific component. The outlier removal algorithm and full model and priors are given in the
Supplemental material.