MANOVA & Transformations
Topic: Data transformations (log, Box-Cox, back-transforming) and tests for several responses at once (MANOVA, PERMANOVA).
Note
Self-study unit. There is no class on Wednesday, November 25 (Thanksgiving week), so this unit has no lecture. Work through the page below on your own; it has the code, the output, and a picture for every step.
Learning Objectives
- Recognise a response that needs a transformation (skewed, spread growing with the mean), log it, and back-transform the answer to the original units
- Use Box-Cox to choose a transformation, and know when a GLM is the better alternative
- Test several responses at once with MANOVA, read Pillai’s trace, and follow up with per-response ANOVAs and a discriminant (LDA) plot
- Use PERMANOVA (
adonis2) for species or other non-normal multivariate data, after checking dispersion withbetadisper
Work through this
R Code
Data
- soil_microbes.csv: 60 soil cores, soil organic carbon and microbial biomass (simulated)
- winedata.csv: the Week 1 wine data
dune,dune.env: built into theveganpackage
Key Packages
library(MASS) # boxcox(), lda()
library(vegan) # adonis2(), betadisper(), metaMDS()