Learn R Programming

SASmixed (version 1.0-4)

Genetics: Heritability data

Description

The Genetics data frame has 60 rows and 4 columns.

Arguments

Format

This data frame contains the following columns:
Location
a factor with levels 1 to 4
Block
a factor with levels 1 to 3
Family
a factor with levels 1 to 5
Yield
a numeric vector of crop yields

Source

Littel, R. C., Milliken, G. A., Stroup, W. W., and Wolfinger, R. D. (1996), SAS System for Mixed Models, SAS Institute (Data Set 4.5).

Examples

Run this code
str(Genetics)
if (require("lme4", quietly = TRUE, character = TRUE)) {
  options(contrasts = c(unordered = "contr.SAS", ordered = "contr.poly"))
  summary(fm1Gen <- lmer(Yield ~ Family + (1|Location/Block), Genetics))
}

Run the code above in your browser using DataLab