1
I want to isolate a factor from the result and leave it as a vector so I can use this factor in another formula.
Example:
library(drc)
data=S.alba
dados$Dose <- as.factor(dados$Dose)
alba.aov <- aov(DryMatter~Dose, data=dados)
summary(alba.aov)
Df Sum Sq Mean Sq F value Pr(>F)
Dose 7 121.17 17.310 53.04 <2e-16 ***
Residuals 60 19.58 0.326
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
I would like to isolate only the Sum Sq of the Dose. So you could use it in other formulas without having to look for the exact value and changing formula by formula.
Example 2:
SumSqDose <- C(valor do Sum Sq alba.aov)
Instead of writing a formula like this: (121,17/7)
It would look something like this: (SumSqDose/7)
Does anyone know how to extract this value without having to look for one by one?