FishingExperiment | R Documentation |
This data is from a simulated experiment of sport fishing after trout. There are a total of 48 samples in a four factor fully crossed design. Each observation is the yield of trout after four hours fishing.
FishingExperiment
A data frame with 48 observations (rows) and 5 variables (columns).
Column name | Data type | Description | Values | |
[,1] | Yield | numeric | Yield of trout in hg | (5.7 - 17.2) |
[,2] | Hook | factor | 2 types of hooks | (Lure, Wobler) |
[,3] | Lake | factor | 4 different lakes | (Lake1, Lake2, Lake3, Lake4) |
[,4] | Time | factor | Time of the day | (Evening, Morning) |
[,5] | Person | factor | 3 different fishermen | (Person1, Person2, Person3) |
A nature manager is responsible for the sport fishing after trout in a lot of lakes. With the help from three fishermen, he designed an experiment where he randomly chose four of the lakes and two different hooks. The yield of trout was measured after four hours of fishing, either in the morning or in the evening.
This data was used in the compulsory assignment in STAT210 H20, and in Exercises for STAT210 (exercise 17 and 18) in August 2022.
The data is created by Lars Erik Gangsei.
# A short summary of the variables
summary(FishingExperiment)
# Linear model
lm(Yield ~ Hook+Lake+Time, data = FishingExperiment)
# Boxplot of yield based on each factor alone
par(mfrow = c(1, 4)) # Plot settings
boxplot(Yield ~ Hook, data = FishingExperiment,
col = "lightgreen")
boxplot(Yield ~ Lake, data = FishingExperiment,
col = "lightgreen")
boxplot(Yield ~ Time, data = FishingExperiment,
col = "lightgreen")
boxplot(Yield ~ Person, data = FishingExperiment,
col = "lightgreen")
par(mfrow = c(1, 1)) # Reset to default settings
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.