Week 13 · Chapter 13 · MC 501 Research Methods for Mass Communications
Working session
v2v::run_chi_square()One call takes the data, the variable to compare, and the variable that splits it into groups.
Welch two-sample t-test
message_length by is_gaming
Mean, gaming 28.49 characters
Mean, non-gaming 33.70 characters
Difference -5.22 characters
t -4.95
df 3768.7
p-value < .001
Cohen's d -0.13 (negligible)
t of -4.95 measures the gap in units of its own uncertainty: about five widths of sampling noise separate the averagesdf of 3768.7 is not round because Welch computes it from both groups’ sizes and spreads.“Scientific conclusions and business or policy decisions should not be based only on whether a p-value passes a specific threshold.”
Wasserstein & Lazar (2016, p. 131)
On Lakens et al. (2018), “Justify your alpha”:
Take the second question in writing. It belongs in your White Paper.
Compute each group’s mean and its standard error, then turn the error into a ninety-five percent interval you can plot.
Gaming channels produced shorter chat messages on average than non-gaming channels (28.49 vs. 33.70 characters), Welch’s t(3768.7) = -4.95, p < .001, Cohen’s d = -0.13.
Then again in one plain sentence: the two kinds of channel do differ, but so slightly that they are better thought of as alike than as different.
game category n mean length
Fortnite 4000 33.23
Hearthstone 3004 36.82
Just Chatting 2429 39.03
League of Legends 4000 22.63
Df Sum Sq Mean Sq F value Pr(>F)
game 3 547281 182427 92.26 < 2e-16 ***
Residuals 13429 26552407 1977
aov()oneway.test(), Welch’s ANOVA, is the safer choice over the pooled aov() aboveTukeyHSD() is the standard one Estimate Std. Error t value Pr(>|t|)
(Intercept) 33.70 0.70 48.16 < .001
is_gamingTRUE -5.22 0.74 -7.08 < .001
The intercept is the non-gaming mean and the coefficient is exactly the gap the t-test found, now cast as a baseline plus an adjustment.
t of -7.08 differs from Welch’s -4.95 because a plain regression pools the two spreads. The coefficient itself is identical.plot(model) draws the diagnostic quartetBoth assigned this week · 200 points
theme_v2v() figures