Example 3.1: two drugs and their doses, herds nested in drug (part of the data)
Source:R/data.R
ex31.RdPacked cell volume (PCV, %) at treatment and one month later; Berenil (at two doses) and Samorin (one dose) were given to animals in herds nested in drug. The book prints only part of the data (a few animals per herd and dose); these 38 rows are that part, so the analyses of Example 3.1 run but do not reproduce the printed results.
Format
A data frame with 38 rows and 6 variables:
- herd
herd within drug: 1 to 4 (herds with the same number but another drug are different herds).
- animal_id
animal.
- PCV1
PCV at treatment.
- PCV2
PCV one month after treatment.
- dose
dose within drug: 1 or 2 (Samorin has dose 1 only).
- drug
drug:
BERENILorSAMORIN.
Source
Duchateau, L., Janssen, P. and Rowlands, G. J. (1998). Linear Mixed Models. An Introduction with Applications in Veterinary Research. International Livestock Research Institute, Nairobi. Appendix A.
Examples
str(ex31)
#> 'data.frame': 38 obs. of 6 variables:
#> $ herd : int 1 1 1 1 1 1 1 1 1 2 ...
#> $ animal_id: int 667 1003 1177 227 241 271 44 48 233 1368 ...
#> $ PCV1 : int 17 22 20 22 22 18 22 21 18 18 ...
#> $ PCV2 : int 28 23 28 25 23 18 27 20 30 20 ...
#> $ dose : int 1 1 1 2 2 2 1 1 1 1 ...
#> $ drug : Factor w/ 2 levels "BERENIL","SAMORIN": 1 1 1 1 1 1 2 2 2 1 ...