powered by
nlme
Calculation of BLUEs from data frame of genotype names and phenotypes (assuming repeated measurements)
BLUE(data, model, random, genotype.ID)
A data-frame with columns "geno" for the genotype names, and "blue" for the BLUEs.
Data frame of genotype codes and corresponding phenotypes
The model specification of fixed terms, eg. Yield ~ Clones
The random component of the model (repeat structure, can be nested), eg. ~1 | Blocks if only Blocks are used
The colname used to describe genotypes, e.g. "Clones"
data("Phenotypes_4x") blue <- BLUE(data = Phenotypes_4x,model = pheno~geno,random = ~1|year,genotype.ID = "geno")
Run the code above in your browser using DataLab