Appendix B: Quick-Reference Cards
This appendix collects the most useful summary tables from across the book into one place. Bookmark or print these for use during analysis.
Test-selection flowchart
Three questions to ask, in order. Each combination of answers points to one test.
| Outcome | Predictor(s) | Test | R |
|---|---|---|---|
| Continuous | Comparison to a known value | One-sample t-test | t.test(x, mu = value) |
| Continuous | 2 groups, independent | Independent t-test | t.test(y ~ group, data) |
| Continuous | 2 groups, paired | Paired t-test | t.test(post, pre, paired = TRUE) |
| Continuous | 3+ groups, independent | One-way ANOVA | aov(y ~ group, data) |
| Continuous | 2 categorical predictors | Two-way ANOVA | aov(y ~ A * B, data) |
| Continuous | Within-subject (repeated) | Repeated-measures ANOVA | afex::aov_ez(...) |
| Continuous | Between × within | Mixed ANOVA | afex::aov_ez(...) |
| Continuous | One continuous | Correlation / simple regression | cor.test(x, y), lm(y ~ x) |
| Continuous | Multiple predictors | Multiple regression | lm(y ~ x1 + x2 + ..., data) |
| Categorical | One categorical | Chi-square goodness of fit | chisq.test(x, p = expected) |
| Categorical | Categorical (cross-tab) | Chi-square test of independence | chisq.test(table) |
For ordinal data or clear non-normality in a small sample, swap to the non-parametric equivalent. Unequal variances call for Welch’s test instead (t.test()’s default, or oneway.test() for ANOVA):
| Parametric | Non-parametric |
|---|---|
| Independent t | wilcox.test(y ~ group) (Mann-Whitney) |
| Paired t | wilcox.test(post, pre, paired = TRUE) |
| One-sample t | wilcox.test(x, mu = value) |
| One-way ANOVA | kruskal.test(y ~ group) |
| Repeated-measures | friedman.test(...) |
| Pearson correlation | cor.test(x, y, method = "spearman") |
Distribution cheat sheet
| Distribution | Used in | Shape | Parameters | What it tests |
|---|---|---|---|---|
| Normal (Z) | Large samples, known σ | Symmetric bell | mean, SD | Standardized scores |
| t | All t-tests, regression slopes | Symmetric, heavier tails than normal | df | Differences in means, slopes |
| F | ANOVA, regression overall test | Right-skewed, positive only | df₁, df₂ | Ratio of variances |
| Chi-square (\(\chi^2\)) | Goodness-of-fit, independence | Right-skewed, positive only | df | Sum of squared standardized scores |
R one-liners by test
Copy-paste ready.
# t-tests
t.test(x, mu = 100) # one-sample
t.test(y ~ group, data = data) # independent (Welch's, default)
t.test(post, pre, paired = TRUE) # paired
# ANOVA
model <- aov(y ~ group, data = data); summary(model) # one-way
TukeyHSD(model) # post-hoc
model <- aov(y ~ A * B, data = data); summary(model) # two-way
afex::aov_ez(id, dv, between, within, data = data) # repeated/mixed
# Regression
model <- lm(y ~ x, data = data); summary(model) # simple
model <- lm(y ~ x1 + x2 + x3, data = data); summary(model) # multiple
par(mfrow = c(2,2)); plot(model) # diagnostics
library(car); vif(model) # multicollinearity
# Correlation
cor.test(x, y) # Pearson
cor.test(x, y, method = "spearman") # Spearman
# Chi-square
chisq.test(x = observed, p = expected) # goodness of fit
chisq.test(table) # independence
library(vcd); assocstats(table) # Cramér's V
# Non-parametric
wilcox.test(y ~ group, data = data) # Mann-Whitney
rstatix::wilcox_effsize(data, y ~ group) # Rosenthal's r
wilcox.test(post, pre, paired = TRUE) # Wilcoxon signed-rank
kruskal.test(y ~ group, data = data) # Kruskal-Wallis
friedman.test(...) # Friedman
rstatix::kruskal_effsize(data, y ~ group) # eta-squared H (Kruskal-Wallis)
rstatix::friedman_effsize(data, y ~ cond | subj) # Kendall's W (Friedman)
# Normality
shapiro.test(x) # variable
shapiro.test(residuals(model)) # residuals (ANOVA / regression)
# Effect sizes
library(effsize); cohen.d(y ~ group, data = data) # Cohen's d
library(effectsize); eta_squared(model, partial = FALSE) # eta-squared
library(effectsize); eta_squared(model, partial = TRUE) # partial
library(effectsize); eta_squared(model, generalized = TRUE) # generalizedAPA reporting template strip
The minimum reporting elements per test.
| Test | Minimum elements |
|---|---|
| t-test | t(df) = x.xx, p = .xxx, M and SD for each group, Cohen’s d, 95% CI for the mean (difference) |
| ANOVA | F(df₁, df₂) = x.xx, p = .xxx, \(\eta^2\) (or partial / generalized), post-hoc for significant omnibus |
| Correlation | r(df) = .xx, 95% CI [.xx, .xx], p = .xxx |
| Regression | F(df₁, df₂) = x.xx, p = .xxx, \(R^2\) (and adj. for multiple), b, SE, 95% CI, t, and p for each predictor |
| Chi-square | \(\chi^2\)(df, N = xx) = x.xx, p = .xxx, Cohen’s w for goodness of fit or Cramér’s V for independence |
Universal conventions:
- p to 3 decimals; everything else to 2.
- Italicize statistics written with Latin letters (t, F, p, r, d); Greek letters (χ², η², ρ) stay upright.
- No leading zero on p (
.024, not0.024). - “p < .001” for tiny p-values, not the exact number.
- Effect size is reported regardless of significance (APA 7). Some courses use a convention of omitting effect size for non-significant results; this course follows APA 7.
Number-reporting conventions
- p-values: three decimal places, no leading zero (
.024). - Means, SDs, t, F, r, b: two decimal places.
- \(R^2\), \(\eta^2\): two decimal places, no leading zero (
.34). - Cohen’s d: two decimals.
- Degrees of freedom: as R prints them — non-integer for Welch’s t and for sphericity-corrected repeated-measures/mixed ANOVA.
Effect size benchmarks
Rough cross-disciplinary conventions. Use field norms when available.
| Statistic | Small | Medium | Large |
|---|---|---|---|
| Cohen’s d | 0.2 | 0.5 | 0.8 |
| r | .10 | .30 | .50 |
| \(R^2\) | .01 | .09 | .25 |
| \(\eta^2\) | .01 | .06 | .14 |
| Cramér’s V (small tables) | .10 | .30 | .50 |
Assumption check workflow
Got a model (lm or aov)?
│
├── YES → shapiro.test(residuals(model))
│ plot(model)
│
└── NO → Check the relevant data:
One-sample t → the variable
Independent t → each group separately
Paired t → the differences (post - pre)
Correlation → both variables
Things that should never appear in your homework
- “p = 0.000” (use p < .001)
- “The means are significantly equal” (a non-significant test does not prove equality)
- “The correlation proves that X causes Y”
- A regression result without a diagnostic check
- An ANOVA result without group descriptives
- A t-test result without effect size
- A figure without axis labels
- Numeric group codes (1, 2, 3) used as a predictor in ANOVA or regression without converting to factor
Things that should always appear in your homework
- A statement of the research question.
- The level of measurement of each variable.
- The assumption check (briefly).
- The test statistic, df (when the test has one), and p.
- The effect size.
- Descriptives that fit the test: means and SDs, medians for rank tests, or counts for categorical data.
- An APA-style write-up sentence at the end.
That’s the entire course on one page.