Learn R Programming

SASmixed (version 1.0-4)

PBIB: A partially balanced incomplete block experiment

Description

The PBIB data frame has 60 rows and 3 columns.

Arguments

Format

This data frame contains the following columns:
response
a numeric vector
Treatment
a factor with levels 1 to 15
Block
an ordered factor with levels 1 to 15

Source

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

Examples

Run this code
str(PBIB)
if (require("lme4", quietly = TRUE, character = TRUE)) {
  options(contrasts = c(unordered = "contr.SAS", ordered = "contr.poly"))
  ## compare with output 1.7  pp. 24-25
  print(fm1PBIB <- lmer(response ~ Treatment + (1|Block), PBIB))
  print(anova(fm1PBIB))
}

Run the code above in your browser using DataLab