harvey_lsmeans: Average Daily Gain of Steers (Harvey's LS-Means Data)

harvey_lsmeansR Documentation

Average Daily Gain of Steers (Harvey's LS-Means Data)

Description

Average daily gain of 65 Hereford steers by 9 sires in 3 lines, with the age class of the dam, weaning age and initial weight; unbalanced throughout. Harvey (1960) used these data to introduce least-squares means. Used in vignette("sas").

Usage

data(harvey_lsmeans)

Format

A data frame with 65 rows and 7 columns:

line

factor, line of the dam (3 levels).

sire

factor, sire (9 levels, each within one line).

damage

factor, age class of the dam (A3, A4, A5).

calf

factor, calf (65 levels).

weanage

calf age at weaning (days).

weight

calf weight at the start of feeding (pounds).

adg

average daily gain (pounds per day).

Source

Copied from harvey.lsmeans of the agridat package 1.27 (Kevin Wright, MIT licence). Harvey, W. R. (1960). Least-squares Analysis of Data with Unequal Subclass Numbers. Technical Report ARS 20-8, USDA Agricultural Research Service, pp. 101–102.

Examples

data(harvey_lsmeans)
fm <- lmer(adg ~ line + damage + weanage + (1 | line:sire), data = harvey_lsmeans)
predictmeans(fm, "line")$means

predictmeans documentation built on Dec. 3, 2026, 5:07 p.m.