dfwithin
dfwithin is a term used in statistics, often appearing in notation or software outputs for analysis of variance (ANOVA). It denotes the degrees of freedom associated with the within-group or residual variation in a model. These degrees of freedom quantify how much independent information remains to estimate within-group variability after accounting for the estimated group effects.
In a standard one-way ANOVA with k groups and a total of N observations, dfwithin equals N
dfbetween and dftotal are related measures: dfbetween = k − 1 and dftotal = N − 1. Together, they partition
In more complex designs, such as factorial ANOVA or repeated-measures (within-subjects) designs, dfwithin may refer to
In practice, dfwithin is used to compute MSwithin (or MSE) and to form F-statistics for tests of