library(rio)
library(tidyverse)
library(mosaic)
library(car)
<- rio::import("https://byuistats.github.io/BYUI_M221_Book/Data/womenpoet.xls") womenpoet
ANOVA Practice
Testing Mosquitos
Introduction
A study was conducted to determine if different types of material can reduce the amount of mosquito human contact. The researchers evaluated five different types of patches 1=Odomos, 2=Deltamethrin, 3=Cyfluthrin, 4=D+O, 5=C+O.
The amount of mosquito human contact was measured to assess any differences between the five different types of material. Use a level of significance of 0.05.
Load the Data
<- rio::import("https://raw.githubusercontent.com/rdcromar/Math221D/main/MosquitoPatch.csv") %>% mutate(Treatment = factor(Treatment)) MosquitoPatch
Review the Data
Create a side-by-side boxplot for human contact for each of the treatment groups.
Add a title and change the colors of the boxes.
Create a summary statistics table for human contact for each of the treatment groups:
Question: What do you observe?
Answer:
Question: What is the maximum standard deviation?
Answer:
Question: What is the minimum standard deviation?
Answer:
Perform the Appropriate Analysis
State your null and alternative hypotheses:
Perform an Analysis of Variance test including checking for the appropriateness of our analysis.
Question: What is the test statistic (F-value)?
Answer:
Question: What are the degrees of freedom for your analysis?
- Numerator (between Groups) Degrees of Freedom
- Denominator (within groups) Degrees of Freedom
Answer:
Question: What is the P-value?
Answer:
Question: Do you reject the null hypothesis? Why?
Answer:
Question: State your conclusion in context of the problem.
Answer:
Question: Can we trust the p-value? a. Check for equal standard deviation (is the ratio of the largest SD / smallest SD greater than 2?) b. Check Normality of the residuals (qqPlot()
)
Answer: