rats | R Documentation |
Three experimental treatments were administered to rats, and the glycogen content of different sections of the rats’ livers was analysed as the response variable.
rats
A tibble with 36 observations (rows) and 4 variables (columns).
Column name | Data type | Description | Values | |
[,1] | Glycogen | numeric | Glycogen content in the liver section | (125 - 162) |
[,2] | Treatment | numeric | 3 different treatments | (1, 2, 3) |
[,3] | Rat | numeric | The rat within each treatment | (1, 2) |
[,4] | Liver | numeric | The section of the liver | (1, 2, 3) |
The experiment was performed as follows:
There were two rats per treatment. The total number of rats was n = 3 × 2 = 6.
After each rat was killed, its liver was cut up into three pieces: a left-hand bit, a central bit, and a right-hand bit. Because each of the six rats produced three bits of liver; the number of samples becomes 6 × 3 = 18.
In addition, two separate preparations were made from each macerated bit of liver to assess the measurement error associated with the analytical machinery. There are 2 × 18 = 36 numbers in the table.
The R book
, M.J. Crawley, Wiley, 2007 (Chapter 19).
# Boxplot of the glycogen content in the central bit of the liver
central_bit <- rats[which(rats$Liver == 2),]
boxplot(Glycogen~Treatment, data = central_bit,
main = "Glycogen content in the central bit of the liver",
ylab = "Glycogen content")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.