Section 5.13 Key Functions & Commands
The following functions and commands are introduced or reinforced in this chapter to support analysis of variance (ANOVA), post-hoc testing, and model comparison.
-
set.seed()(base R)-
Ensures reproducibility when generating random data.
-
-
rnorm()(stats)-
Generates random values from a normal distribution with a specified mean and standard deviation.
-
-
aov()(stats)-
Fits one-way and two-way analysis of variance (ANOVA) models.
-
-
summary()(base R)-
Produces summaries of ANOVA model results, including F statistics and p-values.
-
-
supernova()(supernova)-
Displays ANOVA results in a clear, structured table emphasizing sums of squares and variance explained.
-
-
TukeyHSD()(stats)-
Performs post-hoc pairwise comparisons following a significant ANOVA.
-
-
plot()(base R)-
Visualizes post-hoc comparison results, such as Tukeyβs HSD confidence intervals.
-
-
aictab()(AICcmodavg)-
Compares competing statistical models using Akaike Information Criterion (AIC).
-
