Learn R Programming

polyqtlR (version 0.1.1)

BLUE: Calculate Best Linear Unbiased Estimates using linear mixed model from nlme package

Description

Calculation of BLUEs from data frame of genotype names and phenotypes (assuming repeated measurements)

Usage

BLUE(data, model, random, genotype.ID)

Value

A data-frame with columns "geno" for the genotype names, and "blue" for the BLUEs.

Arguments

data

Data frame of genotype codes and corresponding phenotypes

model

The model specification of fixed terms, eg. Yield ~ Clones

random

The random component of the model (repeat structure, can be nested), eg. ~1 | Blocks if only Blocks are used

genotype.ID

The colname used to describe genotypes, e.g. "Clones"

Examples

Run this code
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