I have an essay in wich I study the way a product is applied (Aplicación) and the product itself(Químico), the interaction (Tratamiento) and the block (Y)
When i do an aov in R the degrees of freedom should be:
Aplicación -> 2
Químico -> 2
Tratamiento ->4
Y->3
And that's the response:
> aovA09 anova(aovA09)
Analysis of Variance Table
Response: A09
Df Sum Sq Mean Sq F value Pr(>F)
Y 3 2.719 0.90625 0.5427 0.6566
Químico 2 1.197 0.59844 0.3584 0.7016
Aplicación 1 0.195 0.19531 0.1170 0.7346
Tratamiento 1 0.195 0.19531 0.1170 0.7346
Residuals 32 53.438 1.66992
I've read that some people doesn't set the factor but in my case that's right:
> class(LT16$Y)
[1] "factor"
> class(LT16$Tratamiento)
[1] "factor"
> class(LT16$Químico)
[1] "factor"
> class(LT16$Aplicación)
[1] "factor"
When I try to delete one factor the DF are ok:
Response: A09
Df Sum Sq Mean Sq F value Pr(>F)
Tratamiento 4 1.587 0.39687 0.2474 0.9093
Residuals 35 56.156 1.60446
Response: A09
Df Sum Sq Mean Sq F value Pr(>F)
Aplicación 2 0.759 0.37969 0.2465 0.7828
Residuals 37 56.984 1.54012
Response: A09
Df Sum Sq Mean Sq F value Pr(>F)
Químico 2 1.197 0.59844 0.3916 0.6788
Response: A09
Df Sum Sq Mean Sq F value Pr(>F)
Y 3 2.719 0.90625 0.5929 0.6237
Residuals 36 55.025 1.52847
I think that i don't put some code somewhere but i cant figure it out.
Thank you everyone.