I am trying to solve an exercise with R, that I found in the book Design of Experiments for Agriculture and the Natural Sciences(pag. 164)

I have passed the table to the R software
library(tibble)
tb = tibble("replica" = factor(x = rep(1:4,12), labels = c("I","II","III","IV")),
"row" = factor(x = rep(1:4,c(12,12,12,12)), labels = c("12P","25P","12B","25B")),
"hybrid" = factor(x = rep(1:2,c(24,24)), labels = c("P3730","B70XH55")),
"density" = factor(x = c(rep(1:3,c(4,4,4)),rep(1:3,c(4,4,4)), rep(1:3,c(4,4,4)), rep(1:3,c(4,4,4)) ),
labels = c("12000","16000","20000")),
"valor" = c(140,138,130,142,
145,146,150,147,
150,149,146,150,
136,132,134,138,
140,134,136,140,
145,138,138,142,
142,132,128,140,
146,136,140,141,
148,140,142,140,
132,130,136,134,
138,132,130,132,
140,134,130,136))
but i have difficulty creating aov model
model = aov(valor ~ replica + hybrid + replica/hybrid + row + replica/row + density + replica/density + row:density ,data = tb)
when applying anova(model), it gives me discordant result with the table below
If there is any other way to apply the model, please I am all ear to your answers. I apply anova() for the reason that I can extract the msres anova(model)['Residuals', 'Mean Sq'] and that helps me calculate the reliability of the model (cv)
