Winter 2025
NHST: statistical significance and effect size
Create a tibble with two groups (Treat
and Ctrl
) – each with 5 data points, say indicating the duration of a coding task.
Is this a significant difference?
Formula syntax vs. passing individual vectors
The formula syntax (Duration~Grp
) on long data is equivalent to calling t.test
with vectors when data is in wide format: t.test(t$Ctrl, t$Treat)
A two-sided test (no difference) is the default
Set the alternative
argument for a one-sided test.
Is this a significant difference?
Expected results for the wilcox.test (U test), one-sided, and the A12 effect size
How do we compute the p value and A12?
expand
p-value: probability of observing the given outcome (W score), or a more extreme outcome.
Exercise: work out the math