Concept Architecture
Autoregressive Correlation and AR(1) Structures for Trial Costs, Utilities and Health Spending
Trial-based economic evaluations record utility and resource use at several visits for each patient, and health systems report spending for the same countries or regions year after year. Measurements on the same unit are not independent, and an autoregressive structure captures that dependence with a single parameter that decays with distance in time. The AR(1) form is used in generalised estimating equations and mixed models, where it competes with exchangeable and unstructured alternatives. In an illustrative worked example the choice changes the variance of a QALY total and of a change from baseline, and the same structure appears as serial correlation in analyses of health spending.
Why repeated costs and utilities move together within a patient
A patient who reports poor health at one visit tends to report poor health at the next, because the condition, comorbidities and reporting habits persist. Resource use behaves in the same way, since a patient on an expensive care pathway in one quarter is often still on it in the next. In a cost-utility analysis alongside a trial, these repeated health state utility values and costs are summed into totals for each patient, so the dependence between visits passes straight into the precision of those totals. A model that treats each visit record as an independent observation misstates the standard error of any effect built from those records, while a model that represents the correlation can use the data more efficiently.
The AR(1) structure and its continuous-time form
The first-order autoregressive structure uses a single parameter for the correlation between any two visits. The correlation is highest for adjacent visits and falls geometrically with the number of steps between them.
where and are the outcomes (for example utility or cost) of patient at visits and , is the number of visit steps between them, and is the correlation between adjacent visits, with . For four equally spaced visits the correlation matrix is as follows.
where the entry in row and column is the correlation between visits and . With a common variance at every visit, the covariance between visits is . In repeated health measures is normally positive, so measurements close in time are more alike than measurements far apart, and the correlation tends towards zero as the gap grows.
Trial visits are often unequally spaced, for example at 0, 3, 6 and 12 months, and counting visit steps would treat a 3-month gap and a 6-month gap as the same distance. The continuous-time version uses elapsed time instead, as follows.
where and are the times of visits and for patient in a chosen unit such as months, and is the correlation between two measurements one time unit apart. Liang and Zeger gave this form as a working model in their 1986 paper on generalised estimating equations, noting that it accommodates an arbitrary number and spacing of observations.
How the structure enters GEE working correlation and mixed-model residuals
Autoregressive correlation is used in two families of models for repeated health economic outcomes. They treat the structure differently, which changes how much rests on choosing it well.
In generalised estimating equations, the AR(1) matrix is one choice of working correlation, a stated guess at the within-patient correlation. Liang and Zeger showed that the regression estimates and their variance estimate stay consistent whatever working correlation is chosen, provided the mean model is correct; the variance comes from the sandwich estimator, and a working structure close to the truth gives more efficient estimates. The protection has a condition. When the working correlation is wrong, the authors required data to be missing completely at random, which trial dropout rarely satisfies.
In a mixed effects model, the structure is part of a full likelihood. AR(1) is usually placed on the within-patient residuals, often with a random intercept for each patient. A random intercept alone implies an exchangeable pattern, so the combination gives correlation that decays towards a floor set by stable differences between patients, a model set out in the longitudinal texts of Diggle and colleagues and of Fitzmaurice, Laird and Ware. Gabrio, Plumpton, Banerjee and Leurent describe linear mixed models for trial-based cost-effectiveness analysis that give correct inferences when data are missing at random, with QALYs and total costs recovered as weighted linear combinations of the estimated visit means. With incomplete follow-up, the assumed covariance links missing visits to observed ones, so a structure that misdescribes the decay of correlation can shift the estimated QALY difference as well as its standard error.
Choosing between exchangeable, AR(1) and unstructured patterns
The main alternatives differ in how correlation changes with distance between visits and in how many parameters they need. The table summarises the three most used for trial outcomes measured at visits.
| Structure | Correlation between visits and | Correlation parameters | Plausible when |
|---|---|---|---|
| Exchangeable | the same for every pair | 1 | stable differences between patients dominate |
| AR(1) | 1 | correlation fades steadily over a long follow-up | |
| Unstructured | a free for each pair | few visits and a large sample |
Liang and Zeger noted that the unstructured choice gives the most efficient estimator but is only useful when there are few observation times; with five visits it needs 10 correlation parameters. The mixed model for repeated measures used in many trials adopts an unstructured covariance, and Gabrio and colleagues note that when such a model does not converge, simpler covariance structures could be considered. AR(1) is one such option, with one correlation parameter whatever the number of visits.
A table of residual correlations by pair of visits is the first guide. Correlation that falls with the gap points to AR(1), a flat pattern to exchangeable, and a fall that levels off to a random intercept plus AR(1) residuals. For mixed models, the Akaike information criterion can compare covariance structures fitted to the same mean model. GEE has no likelihood, so Pan proposed a quasi-likelihood version, QIC; the geepack documentation for R states that QIC is used to select a correlation structure, with CIC as an alternative.
Worked example with one QALY total and one change from baseline
The figures in this example are illustrative. A trial measures utility at baseline, 6 months and 12 months, with a standard deviation of 0.20 at each visit, so . Each patient's 12-month QALY is the area under the utility curve by the trapezium rule, as follows.
where is the 12-month QALY total for patient , and , and are that patient's utilities at baseline, 6 and 12 months; the weights are in years, with half of each 6-month interval attached to each end. The variance of this weighted sum is given below.
where and are the visit weights (0.25, 0.5 and 0.25) and is the correlation between visits and , equal to 1 when .
1. Independence. With zero correlation between different visits only the squared weights remain.
where 0.015 is the variance of the QALY total, a standard deviation of about 0.122.
2. AR(1) with adjacent-visit correlation 0.7. Baseline and 12 months are two steps apart, so their correlation is 0.7 × 0.7 = 0.49. The cross-products are 0.25 × 0.5 × 0.7 = 0.0875 for each adjacent pair and 0.25 × 0.25 × 0.49 = 0.030625 for the outer pair, each counted twice, which gives the following.
where 0.03145 is the variance under AR(1), a standard deviation of about 0.177.
3. Exchangeable with an assumed correlation of 0.7. With the same correlation of 0.7 assumed for every pair, the outer cross-product is 0.25 × 0.25 × 0.7 = 0.04375 and the variance is then as follows.
where 0.0325 is the variance under the exchangeable pattern, a standard deviation of about 0.180.
4. Between-arm standard error. With 100 patients per arm and equal variances, the standard error of the difference in mean QALYs is the square root of twice the variance divided by 100 and comes to about 0.0173 under independence and about 0.0251 under AR(1). An analysis that models visit records as independent and uses model-based (naive) standard errors would understate the standard error by about 31 per cent, giving a confidence interval about 70 per cent of its proper width. An independence working model in GEE with sandwich standard errors does not have this problem.
5. Change from baseline to 12 months. The variance of a difference between two visits is twice , where is the baseline to 12-month correlation, as follows.
where 0.0408 is the variance of the change under AR(1). An exchangeable structure assumed to share the same correlation of 0.7 gives 2 × 0.04 × 0.3 = 0.024, about 41 per cent below the AR(1) value. A fitted exchangeable model would not use 0.7. With data following AR(1), it would estimate roughly the average pairwise correlation, (0.7 + 0.7 + 0.49) / 3 = 0.63, giving 2 × 0.04 × 0.37 = 0.0296, still about 27 per cent below the AR(1) variance.
The two correlated structures nearly agree on the QALY total (0.03145 against 0.0325 at an assumed 0.7, or 0.03075 with the fitted 0.63) but differ clearly on the 12-month change. The choice matters most for contrasts between distant visits, such as a change from baseline or a baseline-adjusted effect on final utility, and least for time-averaged totals. The independence result is the risk when visit records are modelled one by one; when each patient's QALY is calculated first and then compared between arms, the spread of the totals already reflects the correlation.
Serial correlation in time-series and panel analyses of health spending
The same dependence appears when the unit observed repeatedly is a country, region, hospital or practice. Spending, prescribing and admission levels tend to carry over from one period to the next, so regression residuals can be serially correlated. In time-series notation the AR(1) error process is as follows.
where is the regression error in period , is the autoregressive coefficient, and is a new disturbance independent of earlier periods. For a stationary process this implies a correlation of between errors periods apart, the same geometric pattern as the trial structure.
Bertrand, Duflo and Mullainathan generated placebo laws in state-level wage data and found that conventional difference-in-differences standard errors severely understated the true variability, with an effect significant at the 5 per cent level for up to 45 per cent of the placebo interventions. Corrections imposing a specific parametric form on the time-series process did not perform well. Corrections allowing a general covariance across periods worked well for moderate numbers of states, and collapsing the data into before and after periods worked well even for small numbers. A health spending panel of around 20 countries or regions is a small-cluster setting, so the collapsing approach, rather than a simple AR(1) adjustment, is the safer reference point there.
For interrupted time series evaluations, Bernal, Cummins and Gasparrini note that autocorrelation in epidemiological data is often largely explained by seasonality, and recommend residual plots, the partial autocorrelation function and, where autocorrelation remains, Prais regression or ARIMA models.
What the choice changes in a cost-effectiveness result
The structure reaches a decision through the uncertainty around incremental costs and QALYs. Those standard errors feed confidence intervals, acceptability curves and the probability that an intervention is cost-effective at a given threshold, so an understated variance makes a result look more certain than the data allow.
When uncertainty is estimated by bootstrapping, resampling whole patients rather than visit records keeps each sequence intact, so the bootstrap distribution reflects the within-patient correlation whatever structure the point-estimation model assumed. Reports should state the structure used, why it was preferred, and whether incremental results change under a plausible alternative.
Where autoregressive structures are misread
Several errors recur in applied work. Most come from treating AR(1) as a neutral default rather than a specific claim about how correlation decays.
- Assuming correlation dies out. Pure AR(1) drives the correlation between distant visits towards zero, yet stable differences between patients keep utilities correlated over long follow-up; a random intercept with AR(1) residuals often fits better.
- Confusing a correlation structure with a dynamic model. An AR(1) residual structure describes dependence left after the mean model; including the previous outcome as a covariate answers a conditional question, which Liang and Zeger distinguished from their marginal approach.
- Reading an omitted trend as serial correlation. An unmodelled trend or seasonal pattern leaves autocorrelated residuals, so the mean model needs checking before an autoregressive error is added.
Sources
- Bernal JL, Cummins S, Gasparrini A. Interrupted time series regression for the evaluation of public health interventions: a tutorial. International Journal of Epidemiology. 2017;46(1):348-355.
- Bertrand M, Duflo E, Mullainathan S. How much should we trust differences-in-differences estimates? Quarterly Journal of Economics. 2004;119(1):249-275.
- Diggle PJ, Heagerty P, Liang KY, Zeger SL. Analysis of Longitudinal Data. 2nd ed. Oxford: Oxford University Press; 2002.
- Fitzmaurice GM, Laird NM, Ware JH. Applied Longitudinal Analysis. 2nd ed. Hoboken, NJ: Wiley; 2011.
- Gabrio A, Plumpton C, Banerjee S, Leurent B. Linear mixed models to handle missing at random data in trial-based economic evaluations. Health Economics. 2022;31(6):1276-1287.
- Højsgaard S, Halekoh U, Yan J. geepack: Generalized Estimating Equation Package. R package version 1.3.11, QIC help page. 2024. https://search.r-project.org/CRAN/refmans/geepack/html/QIC.html
- Liang KY, Zeger SL. Longitudinal data analysis using generalized linear models. Biometrika. 1986;73(1):13-22.
- Pan W. Akaike's information criterion in generalized estimating equations. Biometrics. 2001;57(1):120-125.
Related Concepts (3)
Functions & Formulae (4)
Corr(Y_ij, Y_ik) = rho^abs(j - k); Var(sum_j w_j * Y_ij) = sigma2 * sum_j sum_k w_j * w_k * rho^abs(j - k)
AR(1) correlation between measurements s visit steps apart
r = rho^s
Continuous-time AR(1) correlation for unequally spaced visits
r = phi^d
Variance of a three-visit QALY total under AR(1) correlation
Var_Q = sigma2 * (w_1^2 + w_2^2 + w_3^2 + 2 * (w_1 * w_2 * rho + w_2 * w_3 * rho + w_1 * w_3 * rho^2))
Variance of a change between two visits under AR(1) correlation
Var_D = 2 * sigma2 * (1 - rho^s)
Library
Publications
8
Interrupted time series regression for the evaluation of public health interventions: a tutorial — Lopez Bernal J, Cummins S, Gasparrini A, Vol. 46, No. 1, pp. 348-355 ed., 2017 (International Journal of Epidemiology)
Tutorial on interrupted time series regression for public health interventions, advising that residual autocorrelation be checked and, where it remains, adjusted for with methods such as Prais regression or ARIMA.
Journal ArticleView source →Applied Longitudinal Analysis — Fitzmaurice GM, Laird NM, Ware JH, 2nd edition ed., 2011 (Wiley)
Textbook on applied longitudinal analysis, cited for covariance structures in repeated-measures models and for comparing them with information criteria.
BookView source →How much should we trust differences-in-differences estimates? — Bertrand M, Duflo E, Mullainathan S, Vol. 119, No. 1, pp. 249-275 ed., 2004 (Quarterly Journal of Economics)
Shows with placebo laws in state-level wage data that conventional difference-in-differences standard errors severely understate variability when outcomes are serially correlated, and compares corrections.
Journal ArticleView source →Akaike's information criterion in generalized estimating equations — Pan W, Vol. 57, No. 1, pp. 120-125 ed., 2001 (Biometrics)
Proposes the quasi-likelihood information criterion, a modification of AIC for generalised estimating equations, which are not likelihood based.
Journal ArticleView source →Longitudinal data analysis using generalized linear models — Liang KY, Zeger SL, Vol. 73, No. 1, pp. 13-22 ed., 1986 (Biometrika)
Paper introducing generalised estimating equations for longitudinal data, whose regression estimates stay consistent whatever working correlation is chosen provided the mean model is correct.
Journal ArticleView source →Linear mixed models to handle missing at random data in trial-based economic evaluations — Gabrio A, Plumpton C, Banerjee S, Leurent B, Vol. 31, No. 6, pp. 1276-1287 ed., 2022 (Health Economics)
Shows how linear mixed models can analyse trial-based cost-effectiveness data with outcomes missing at random, recovering QALYs and total costs from the estimated means at each visit.
Journal ArticleView source →Analysis of Longitudinal Data — Diggle PJ, Heagerty P, Liang KY, Zeger SL, 2nd edition ed., 2002 (Oxford University Press)
Textbook on the analysis of longitudinal data, cited for the first-order autoregressive and exchangeable correlation structures used in repeated-measures models.
BookView source →Bayesian Methods in Health Economics — Gianluca Baio, 1st Edition ed., 2012 (Chapman & Hall / CRC Press)
An overview of Bayesian statistical methods for the analysis of health economic data, covering economic evaluation concepts, statistical cost-effectiveness analysis, Bayesian computation and MCMC, and applied health economic evaluation.
BookView source →
Tools & Resources
1
geepack: Generalized Estimating Equation Package (QIC help page) — Højsgaard S, Halekoh U, Yan J, R package version 1.3.11 ed., 2024 (CRAN)
Help page for the QIC function of the geepack R package, which states that QIC is used to select a correlation structure and suggests CIC as an alternative.
Web (Open Access)View source →
Frequently Asked Questions (6)
What is autoregressive correlation?
Autoregressive correlation is a structure for repeated measures in which correlation falls by a constant factor with each time step between measurements.
Source: Box & Jenkins 1970
How does an autoregressive correlation structure model repeated measurements?
An autoregressive correlation structure models how repeated measurements taken on the same person relate to one another, assuming that observations closer together in time are more strongly correlated than those far apart. It captures the intuitive pattern that a reading today resembles yesterday's more than one from months ago, with correlation fading as the gap widens. Building this into an analysis of longitudinal data avoids treating repeated measures as if they were independent, which would understate uncertainty. Decaying correlation over time is what it represents. Kirkwood and Sterne (2003) describe such structures.
Source: Kirkwood & Sterne 2003
How does an autoregressive correlation structure work?
An autoregressive correlation structure works by specifying that the correlation between two measurements on the same individual depends on the time, or number of steps, between them, decreasing as that separation grows, commonly so that each step multiplies the correlation by a factor less than one. Adjacent measurements are thus most correlated, and distant ones least. So an autoregressive correlation structure works by modelling the declining correlation between repeated measurements with increasing time apart, which captures the intuition that recent observations are more related than distant ones, and it is used in longitudinal models to represent the dependence among a person's repeated measurements over time.
Source: Box & Jenkins 1970
When is autoregressive correlation used?
Autoregressive correlation is used in analysing longitudinal or time series data, where repeated measurements on the same individual over time are correlated, and where the correlation plausibly weakens as measurements become further apart in time. It is common in models for repeated measures, such as some mixed models and generalised estimating equations. So autoregressive correlation is used when modelling repeated measurements whose correlation declines with the time between them, which fits many longitudinal settings better than assuming all repeated measures are equally correlated, allowing the analysis to account appropriately for the pattern of dependence in data collected over time on the same units.
Source: Box & Jenkins 1970
Why does accounting for autoregressive correlation matter?
Accounting for autoregressive correlation matters because repeated measurements on the same individual are not independent, and ignoring their correlation can bias the standard errors and lead to incorrect inference, such as confidence intervals that are too narrow. Modelling the correlation structure appropriately gives valid estimates of uncertainty. So accounting for autoregressive correlation matters for correct analysis of longitudinal data, since treating correlated repeated measures as independent understates the uncertainty and can mislead, and choosing a structure such as autoregressive that reflects the declining correlation over time helps ensure the standard errors and tests properly reflect the dependence in the data.
Source: Box & Jenkins 1970
How does autoregressive correlation differ from other correlation structures?
Autoregressive correlation differs from other structures in how it specifies the correlation among repeated measures: it assumes the correlation declines with the time between measurements, whereas an exchangeable, or compound symmetry, structure assumes all pairs are equally correlated regardless of timing, and an unstructured form estimates every pairwise correlation separately. So autoregressive correlation is one of several structures for repeated measures, distinguished by its assumption that closeness in time means stronger correlation, which suits data where dependence fades over time, while other structures suit different patterns, and the choice affects the model, so it is guided by the nature of the data and the plausibility of the assumed pattern.
Source: Box & Jenkins 1970
Trust Record
Verified by Dr Darrin Baines
British health economist
Professional identity: darrinbaines.org
Verification date: 27 Oct 2026
Content version: 1.0.3
Canonical Identity
- Term code
- HE-ES-SA-008
Stable URI · Machine-readable · Resolvable · CC BY 4.0
