SoyaData | R Documentation |
Six piglets of equal weight were randomly sampled from the same litter, and given three different diets. Two of the diets had different soya proteins (S1 and S2), and one diet had no soya included (NONS). The weight of the piglets was measured after a month.
SoyaData
A data frame with 6 observations (rows) and 2 variables (columns).
Column name | Data type | Description | Values | |
[,1] | Diet | character | 3 different diets | ("NONS", "S1", "S2") |
[,2] | Weight | numeric | Weight of the piglets in kg | (80 - 86) |
This is example data created by a STAT210 teacher, and used in Exercises for STAT210 (exercise 4 and 6) in August 2022.
The data is created by Lars Erik Gangsei.
# Linear model
lm(Weight ~ Diet, data = SoyaData)
# Weight based on the different diets
boxplot(Weight ~ Diet, data = SoyaData)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.