'How to get my df error term in ANOVA (using R)

I am running an mixed-ANOVA (2x2x3) using lm(model), followed by anova(model). I am using this method since I have some missing data and do not want to remove an entire participant on account of that. The output gives me numeric df, but not residual df for each condition.

enter image description here

When I initially ran this anova using aov_car (or ez_anova), I obtained a different df residual for each term (way less inflated).

enter image description here

How can I obtain df residuals for each of my terms?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source