From: The problem of pseudoreplication in neuroscientific studies: is it affecting your analysis?
Test | Degrees of Freedom |
---|---|
T-test | Â |
   Independent | n1 + n2 - 2 |
   Paired | n - 1 |
One-way ANOVA | G - 1 and n - G |
Two-way Anova | Â |
   Main effect of A | G A -1 |
   Main effect of B | G B -1 |
   A × B interaction | (GA -1)(GB -1) |
   Error | n - G A G B |
One-way RM-Anova | Â |
   Between subjects | G - 1 |
   Error | (n -1)(G -1) |
Two-way Mixed †ANOVA |  |
   Between subjects | n(G - 1) |
Groups |    G-1 |
Error |    G(n-1) |
   Within subjects | N - nG |
Obs |    Obs - 1 |
Group × Obs Interaction |    (G - 1)(Obs - 1) |
Error |    N - nG - G (Obs - 1) |
Linear Regression | 1 and n - 2 |
Chi-square | (R - 1)(C -1) |