# use this code chunk to call in all packages the document will need
library(tidyverse)
library(ssstats)R Lab: Two-Way ANOVA
Part 1
Pongo and Perdita have convinced Roger and Anita to run a small Puppy Wellness Study (wellness) to see how different diet types and daily play schedules affect the average weekly weight gain (in grams) of their rapidly growing pups.
Factor A (Diet Type; Diet): High-Protein Kibble vs. Balanced Kibble
Factor B (Play Schedule Play): Short (1 hour/day in the park) vs. Long (3 hours/day in the park).
1. Construct the appropriate two-way ANOVA table.
2. Use the appropriate hypothesis test to show there is an interaction between diet type and play schedule. Test at the \alpha=0.05 level. Remember to typeset your results.
Insert your typesetting here.
3. Construct the profile plot for this analysis. You choose what variable goes on the x-axis and what variable is used to construct the lines.
4. Graphically assess the ANOVA assumptions.
5. Using the graphs in Q5, determine if our analysis is valid. Explain why it is or is not valid.
Replace with your answer.
Part 2
After the puppies grew a bit older, Pongo and Perdita partnered with a local dog academy to evaluate different obedience training approaches and trainer experience levels (obedience). They want to know how these factors affect the number of obedient responses per session (out of 10 cues). Each pup is randomly assigned to one of the following combinations for their obedience sessions:
Factor A (Training Method; Method): Clicker Training vs. Voice Commands
Factor B (Trainer Experience; Trainer): New Trainer vs. Experienced Trainer
6. Construct the appropriate two-way ANOVA table.
7. Use the appropriate hypothesis test to show that there is not an interaction between training method and experience of training. Test at the \alpha=0.05 level. Remember to typeset your results.
Insert your typesetting here.
8. Reconstruct the two-way ANOVA table without the interaction.
9. Use the appropriate hypothesis test to determine if there is a main effect of training method. Test at the \alpha=0.05 level. Remember to typeset your results.
Insert your typesetting here.
10. Use the appropriate hypothesis test to determine if there is a main effect of trainer experience. Test at the \alpha=0.05 level. Remember to typeset your results.
Insert your typesetting here.
11. Construct the profile plot for this analysis. You choose what variable goes on the x-axis and what variable is used to construct the lines.
12. Graphically assess the ANOVA assumptions.
13. Using the graphs in Q12, determine if our analysis is valid. Explain why it is valid or why it is not valid.
Replace with your answer.