Week 4 HW and Presentation Questions

Mc Elreath’s HW

I’ll do a recap lecture (better prepared this time) and also another question at the end.

One thing I’d suggest it getting familar with dplyr and the tidyverse: https://tidyverse-intro.github.io/3-dplyr.html#dplyr, it’ll make the data manipulation much easier. Mcelreath doesn’t actually use the tidyverse (to his own detriment) and I think if you’re not familiar with R, you’re not using the best parts of it by following his code.

For example

df = foxes %>% mutate_each(scale) would have scaled all the columns for you (it’s from dplyr)