Challenge Problem 1: Phylogenetically Independent Contrasts
Part 1:
Download the following two files:
- pic-exercise-data.csv
- pic-exercise-tree.tre
Fit a OLS (non-phylogenetic) regression model for y~x and a phylogenetic
regression model using contrasts. What do you find? Why?
Part 2 (optional):
- Use simulated phylogenies & character data to demonstrate that OLS for data simulated on the tree results in elevated type I error. [Hint: use
pbtree to simulate trees, and fastBM to simulate trait data for x & y on the tree.]
- Show that phylogenetic independent contrasts for these same datasets results in the correct type I error.
Written by Liam J. Revell. Last updated 6 December 2016.