I accustomed to lme4 where it would be simply: (1|genotype/root_ID) but it's unclear to me looking through the documentation the appropriate way to do this in sommer.
mod1 <- mmer(Y ~ 1,
random= ~vsr(genotype,Gu=a) + genotype + genotype:root_ID,
rcov= ~units, nIters=10,
data=fold, verbose = FALSE, dateWarning=FALSE)
The results look realistic but I am not entirely sure this is correct and am worried that I will get inflated CV accuracies...
sommer
andlme4
packages and how to parameterize the model.