From 8509874cf72ca19581ea797857fc5cc36e144c19 Mon Sep 17 00:00:00 2001 From: avahoffman Date: Sat, 28 Jun 2025 12:13:36 -0400 Subject: [PATCH 1/2] Update Statistics.Rmd --- modules/Statistics/Statistics.Rmd | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/modules/Statistics/Statistics.Rmd b/modules/Statistics/Statistics.Rmd index e8ceff25..a26537f9 100644 --- a/modules/Statistics/Statistics.Rmd +++ b/modules/Statistics/Statistics.Rmd @@ -736,5 +736,30 @@ knitr::include_graphics(here::here("images/the-end-g23b994289_1280.jpg")) Image by Gerd Altmann from Pixabay +# Extra Slides + +## Wilcoxon Test + +The Wilcoxon test is a good alternative to the t-test when the normal distribution of the differences between paired individuals cannot be assumed. + +`wilcox.test(x, y, ..)` + +- Like t-test, provide one or two vectors (x, y) +- Choose from `alternative = c("two.sided", "less", "greater")` +- Use `paired = TRUE` for paired values (e.g., before and after) + +## Shapiro Test + +Can tell you if a vector is normally distributed. + +`shapiro.test(x)` + +The smaller the p-value, the more likely the data violates normality assumptions. + + +- `ks.test()` -- Kolmogorov-Smirnov test +- `var.test()`-- Fisher’s F-Test +- `chisq.test()` -- Chi-squared test +- `aov()` -- Analysis of Variance (ANOVA) From f1724486a49c1910dcfc225fe5d4ac36f25891b1 Mon Sep 17 00:00:00 2001 From: avahoffman Date: Sat, 28 Jun 2025 12:14:39 -0400 Subject: [PATCH 2/2] Scaffold other tests --- modules/Statistics/Statistics.Rmd | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/modules/Statistics/Statistics.Rmd b/modules/Statistics/Statistics.Rmd index a26537f9..84232150 100644 --- a/modules/Statistics/Statistics.Rmd +++ b/modules/Statistics/Statistics.Rmd @@ -756,10 +756,20 @@ Can tell you if a vector is normally distributed. The smaller the p-value, the more likely the data violates normality assumptions. +## Kolmogorov-Smirnov test -- `ks.test()` -- Kolmogorov-Smirnov test -- `var.test()`-- Fisher’s F-Test -- `chisq.test()` -- Chi-squared test -- `aov()` -- Analysis of Variance (ANOVA) +`ks.test()` + +## Fisher’s F-Test + +`var.test()` + +## Chi-squared test + +`chisq.test()` + +## Analysis of Variance (ANOVA) + +`aov()`