sires | R Documentation |
From a population of sires, five sires were chosen at random, and for each of these sires the annual milk production for eight of their daughters were recorded.
sires
A data frame with 40 observations (rows) and 2 variables (columns).
Column name | Data type | Description | Values | |
[,1] | milk | integer | Milk produced from each cow in kg | (5970 - 7562) |
[,2] | sire | integer | The father of the cow | (1 - 5) |
The names of the sires:
1: | Åge |
2: | Hynar |
3: | Lars |
4: | Buss |
5: | Gorm |
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
40 cows, the SireHerd
data has 24 observations. SireHerd
contains
information of what herd the cows belong to. sires
and SireHerd
do not
contain the same observations.
SireHerd
# One box for daughters of the same sire,
boxplot(milk ~ sire, data = sires)
# Linear model
lm(milk ~ sire, data = sires)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.