SireHerd | R Documentation |
From a population of sires, three sires were chosen at random, and for each of the sires the annual milk production for three of their daughters were recorded. This data set also contains information of what herd the cows belong to.
SireHerd
A data frame with 24 observations (rows) and 3 variables (columns).
Column name | Data type | Description | Values | |
[,1] | milk | integer | Milk produced from each cow in kg | (6063 - 7579) |
[,2] | herd | factor | The cows live in 4 different groups | (1, 2, 3, 4) |
[,3] | sire | factor | The father of the cow | (1, 2, 3) |
Each sire has two daughters in each herd.
The milk production is the response variable.
The three sires are considered random effects since it is the whole population of sires we are interested in, not specifically this random sample of three sires.
sire
and herd
are nested random effects.
The sire data sets have been used in STAT210 and other courses at NMBU over
several years. While this data set consists of observed milk production for
24 cows, the sires
data has 40 observations. sires
and SireHerd
do not
contain the same observations.
sires
# The structure of the object
str(SireHerd)
# One box for daughters of the same sire in each herd,
# two cows per box
boxplot(milk ~ herd + sire, data = SireHerd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.