Why Degrees of Freedom Need Special Attention
In a linear mixed model, the uncertainty of a fixed-effect estimate depends on the covariance structure of the repeated observations. That structure includes variance components, which are usually estimated rather than known. Consequently, the estimated standard error of a fixed-effect estimate also has uncertainty. This matters especially when the number of independent subjects or clusters is modest: treating the standardized estimate as if it had a standard normal distribution can produce tests that are too optimistic and intervals that are too narrow.
For an ordinary linear model with independent, normally distributed errors and a common variance estimated from the residuals, a Student \(t\) reference distribution accounts for estimating that variance. In a mixed model, the analogous denominator degrees of freedom are generally not obvious. The number of observations is not, by itself, the number of independent pieces of information for every fixed effect. Degrees-of-freedom approximations such as Satterthwaite and Kenward–Roger provide a practical way to reflect some of the additional uncertainty.
Let \(Y\) be the vector of longitudinal outcomes, \(X\) the fixed-effects design matrix, and \(Z\) the random-effects design matrix. A common model is \(Y=X\beta+Zb+\varepsilon\), where \(b\) is a vector of random effects and \(\varepsilon\) is a vector of residual errors. The marginal covariance matrix of \(Y\) is \(V(\theta)\), determined by covariance parameters \(\theta\). If \(\theta\) were known, the generalized least-squares estimate would be
In practice, \(V\) is replaced by \(V(\hat{\theta})\). A single fixed-effect contrast \(L=l^\mathsf{T}\beta\) is estimated by \(\hat{L}=l^\mathsf{T}\hat{\beta}\), and its estimated variance depends on \(\hat{\theta}\). A common test statistic is \(\hat{L}/SE(\hat{L})\). The question is what reference distribution should be used for that statistic when the standard error is estimated.
Satterthwaite Approximation
The Satterthwaite method approximates the sampling distribution of an estimated variance by matching its first two moments to a scaled chi-square distribution. The idea can be shown first for a variance estimate \(Q\) that is approximately a weighted sum of independent scaled chi-square variables. If \(Q\) has mean \(m\) and variance \(v\), approximate it by \(m\chi^2_{\nu}/\nu\). That scaled chi-square has mean \(m\) and variance \(2m^2/\nu\). Matching the variance gives the approximate degrees of freedom.
For a mixed-model contrast, let \(g(\theta)=\operatorname{Var}(\hat{L}\mid\theta)\), and let \(\hat{g}=g(\hat{\theta})\) be its estimated variance. A first-order delta-method approximation estimates the variance of \(\hat{g}\) as \(\nabla g^\mathsf{T}\operatorname{Cov}(\hat{\theta})\nabla g\), evaluated at the fitted covariance parameters. Replacing \(m\) by \(\hat{g}\) and \(v\) by that estimated variance gives the Satterthwaite degrees of freedom:
This expression makes the intuition explicit: greater uncertainty in the estimated contrast variance produces fewer effective degrees of freedom. It also indicates the approximation's conditions. The variance estimate should be reasonably represented by a scaled chi-square distribution, the covariance-parameter estimates should have a usable estimated covariance matrix, and the local linear approximation to \(g(\theta)\) should be adequate. The method is an approximation, not a universal exact result for every mixed model.
Worked Example: Moment Matching a Contrast Variance
Suppose a hypothetical contrast variance estimate, in squared biomarker units, can be represented as \(\hat{g}=0.6(U/8)+0.4(W/20)\), where \(U\) and \(W\) are independent chi-square variables with 8 and 20 degrees of freedom. This representation is assumed to be an adequate approximation for the fitted model. Find its Satterthwaite degrees of freedom.
Because \(E(U/8)=E(W/20)=1\), the estimated variance has mean \(m=0.6+0.4=1.00\) squared biomarker units. For a chi-square variable with \(\nu\) degrees of freedom, the variance of its ratio to \(\nu\) is \(2/\nu\). Independence therefore gives
Moment matching yields \(\widehat{df}=2(1.00)^2/0.106=18.87\). The estimate is not simply \(8+20\): each independent component contributes to the variance estimate with a different weight. The fractional degrees of freedom are expected for an approximation and are used directly with the \(t\) distribution.
From Approximate Degrees of Freedom to Inference
Once an approximate denominator degrees of freedom has been obtained, a one-contrast test uses a \(t\) reference distribution. For \(H_0:L=L_0\), the test statistic is \(t=(\hat{L}-L_0)/SE(\hat{L})\). A two-sided \(100(1-\alpha)\%\) confidence interval is \(\hat{L}\pm t_{1-\alpha/2,df}SE(\hat{L})\). The estimate and standard error retain their usual units; the \(t\) statistic and its degrees of freedom are dimensionless.
Worked Example: Testing a Fixed-Effect Contrast
In a hypothetical longitudinal biomarker analysis, a fitted mixed model estimates a treatment contrast of \(2.50\) biomarker units. Its estimated variance is \(7/3\) squared biomarker units, and a Satterthwaite calculation gives \(df=24.5\). Test \(H_0:L=0\) against a two-sided alternative at \(\alpha=0.05\), and form a 95% confidence interval. Assume the fitted mean and covariance structures are adequate for this inference, and that the Satterthwaite approximation is reasonable.
The standard error is \(SE(\hat{L})=\sqrt{7/3}=1.5275\) biomarker units. Thus
Using a \(t\) distribution with 24.5 degrees of freedom gives a two-sided \(p\)-value of approximately \(0.114\). Since \(0.114>0.05\), the test does not provide sufficient evidence to reject \(H_0\) at the 5% level. This is not evidence that the null hypothesis is true.
The 97.5th percentile is approximately \(t_{0.975,24.5}=2.062\). Using the unrounded standard error,
biomarker units, approximately. The interval includes zero, consistent with the two-sided test. Under repeated use of this procedure and its modeling assumptions, a 95% confidence procedure is designed to cover the true contrast 95% of the time; this interval does not assign a 95% probability to the fixed, unknown contrast.
The degrees of freedom are not a correction to the point estimate. In the usual Satterthwaite calculation, the fitted contrast estimate and its estimated standard error are retained, while the reference distribution is changed to reflect uncertainty in the variance estimate. The result can materially affect the critical value and \(p\)-value when the effective degrees of freedom are small.
Kenward–Roger Adjustment
Kenward–Roger (KR) is another small-sample approach for fixed-effect inference in linear mixed models. It adjusts the estimated covariance matrix of the fixed effects to account for the fact that covariance parameters have been estimated. It also supplies approximate denominator degrees of freedom and, for multi-parameter tests, a scaling adjustment to the approximate \(F\) statistic. For a single contrast, the reported inference is commonly expressed as a \(t\) test; equivalently, its squared statistic is a one-degree-of-freedom \(F\) statistic.
Unlike the simple moment-matching expression, the full KR calculation involves model-specific covariance derivatives and finite-sample adjustments. It is generally obtained from statistical software rather than calculated by hand. Neither method is automatically preferable in every setting: their results can differ because the adjustments are constructed differently, and both rely on the fitted model and an adequate approximation.
Worked Example: Reading a Kenward–Roger Result
Suppose a hypothetical model estimates a treatment-related fixed-effect contrast of \(0.80\) biomarker units per month. A KR-adjusted analysis reports a standard error of \(0.34\) biomarker units per month and \(df=11.6\). Assume the linear mixed model is appropriate, the covariance parameters are estimable, and the software has successfully computed the adjustment. Calculate the test statistic and interpret the approximate two-sided test at \(\alpha=0.05\).
For \(H_0:L=0\), the statistic is \(t=0.80/0.34=2.353\). With 11.6 degrees of freedom, the two-sided \(p\)-value is approximately \(0.037\). Since \(0.037<0.05\), the result is statistically significant at the 5% level under this model and KR approximation. It is evidence that the contrast differs from zero, not evidence that treatment caused the difference.
The approximate 95% confidence interval uses \(t_{0.975,11.6}\approx2.19\):
biomarker units per month. The interval excludes zero, as expected for a two-sided test at the same significance level, subject to rounding.
Choosing, Checking, and Interpreting the Approximation
Both methods are intended to improve fixed-effect inference when covariance parameters are estimated and sample sizes are not large. The choice may depend on the analysis plan, software, model complexity, and the available implementation. Satterthwaite is based on approximating the uncertainty in a particular estimated variance; KR makes additional finite-sample adjustments to the fixed-effect covariance estimate and test statistic. For multi-degree-of-freedom fixed-effect tests, KR's scaling adjustment can be relevant, so a single-contrast calculation should not be substituted for a joint test.
Before trusting either result, check that the model has been fitted successfully and that the covariance structure is scientifically plausible. Degrees of freedom that are extremely small, unexpectedly sensitive to a minor model change, or unavailable from the software can signal weak information about covariance parameters or numerical difficulty. A variance estimate at or near a boundary, a nearly singular estimated covariance matrix, or very few independent subjects can also make approximations fragile. These warning signs motivate careful review of the model and design; they do not, on their own, identify a single correct alternative.
A useful distinction is between uncertainty calibration and model adequacy. Satterthwaite and KR address aspects of finite-sample uncertainty in fixed-effect inference. They do not repair a wrong mean structure, a poorly chosen residual covariance, influential subjects, or a fundamentally unsupported random-effects structure. Those issues require attention to the model itself. The ordinary normal (large-sample Wald) approximation is an alternative, but it may be unreliable when the effective number of independent units is small. Reporting the method used, the estimated degrees of freedom, the standard error, and the test or interval makes the inference easier to evaluate.
- Do not equate observations with degrees of freedom. Repeated measurements on one subject are correlated and are not generally equivalent to the same number of independent subjects.
- Do not treat fractional degrees of freedom as an error. They are a normal outcome of moment matching and are used as reported.
- Do not expect an adjustment to fix misspecification. A refined reference distribution cannot compensate for a materially unsuitable covariance model.
Check Your Understanding
Answer each question, then compare your reasoning with the solutions.
- Why might using a standard normal reference distribution give misleading fixed-effect inference in a mixed model with few subjects?
- If an estimated contrast variance has mean \(m=2\) and estimated variance \(v=0.5\), what is its Satterthwaite degrees of freedom?
- A contrast estimate is \(1.2\) units with standard error \(0.4\) and approximate \(df=10\). What is the test statistic for \(H_0:L=0\)?
- Name one difference between the Satterthwaite and Kenward–Roger approaches.
- Can a degrees-of-freedom adjustment compensate for a misspecified within-subject covariance model?
Solutions. (1) The standard error depends on estimated covariance parameters; with few subjects, their estimation uncertainty can be substantial, and a normal reference distribution may understate uncertainty. (2) \(\nu=2m^2/v=2(2^2)/0.5=16\). (3) \(t=1.2/0.4=3.00\). (4) Satterthwaite matches moments of an estimated variance to a scaled chi-square approximation; KR also adjusts the fixed-effect covariance estimate and can scale multi-parameter \(F\) tests. (5) No. The adjustment concerns small-sample inference, not whether the covariance model is appropriate.