An individual’s critical flicker frequency is the highest frequency at which a flickering light source can be detected. At frequencies above the critical frequency, the light source appears to be continuous even though it is actually flickering.
The data below come from a study titled “The effect of iris color on critical flicker frequency” published in the Journal of General Psychology. The study recorded the critical flicker frequency and iris color (part of the eye) for \(n = 19\) subjects:
flicker = read.csv('https://remiller1450.github.io/data/flicker.csv')
aov()
to fit the one-way
ANOVA model. Print the ANOVA table and interpret the \(p\)-value. Be sure to make a conclusion
that involves the context of these data.\(~\)
For this question you’ll use “diet” data set provided below. These
data come a randomized experiment comparing the efficacy of 3 different
weight loss diets. Each subject’s randomly assigned diet (labeled 1, 2
or 3) is stored in the variable Diet
. The code below loads
these data and creates a categorical variable group
indicating the assigned diet.
diet = read.csv('https://remiller1450.github.io/data/diet.csv')
diet$group = factor(diet$Diet, labels = c("Diet1", "Diet2", "Diet3"))
postWeight
and weightChange
. Which
of these is the better outcome variable? Briefly explain.weightChange
. Then, based upon this graph,
briefly explain whether you believe weightChange
is
associated with diet.weightChange
. Your answer
should show the ANOVA table and interpret the results of the test.
Hint: be sure you’re using group
, which is
categorical.postWeight
. Use ANOVA to determine whether diet
is associated with postWeight
. Your answer should show the
ANOVA table and interpret the results of the test.preWeight
and
diet? Briefly explain, then use ANOVA to verify or refute what you
suspect. You do not need to show all of the formal hypothesis testing
steps here. Instead, you can simply report the \(p\)-value and explain what it tells you in
regard to the premise of this question.