Instructors: Tadashi Fukami and Jes Coyle
Students:
Course Goals:
Students will be able to:
Class Format:
During the first few weeks, each student will briefly introduce their research question and data and we will go over basics of how to use R and interact with the course content on this website using R markdown files and GitHub. From then on, one selected topic will be covered during each class. First the instructor will briefly summarize the assigned reading (~15 min) and go over key concepts and analyses, R packages and how they should be used, how to differentiate among them, including time for questions and clarification. Then, a student will present an example of the topic (~15 min). This could be (1) going over an example presented in the text by walking through the procedure and details of the code that they think are important; or (2) applying these techniques to the student’s own data and walking others through the analysis, and present on their results/challenges faced, etc. Each class concludes with a ~20-min discussion led by the student (who will come prepared with questions to facilitate discussion and will share novel/important/interesting functions and pieces of R code). Each student will lead 1 or 2 topics during the quarter. We will also have a mid-term and final presentation and discussion on student projects. Students will prepare their lesson content ahead of time by modifying the Rmarkdown webpage on this site.
Final product:
Each student will complete the results section to include in a paper to submit for publication or data collection plans for a research proposal.
Week | Day | Date | Topic & Reading | Summary | Discussion |
---|---|---|---|---|---|
1 | Mon | Sept. 25 | Intro to R & RStudio | Tad & Jes | ———— |
Wed | Sept. 27 | Topic selection, Intro to R markdown & class website | Tad & Jes | ———— | |
Fri | Sept. 29 | R workshop (optional) | Jes | ———— | |
2 | Mon | Oct. 2 | Intro to ggplot2 and tidyr | Jes | ———— |
Wed | Oct. 4 | Intro to GitHub & git | Jes | ———— | |
Fri | Oct. 6 | Each person introduces their questions & data | Tad & Jes | ———— | |
3 | Mon | Oct. 9 | Topic 1. Data exploration | Tad | Priscilla |
Wed | Oct. 11 | Topic 2. Linear models | Tad | Sandra | |
Fri | Oct. 13 | Topic 3. Dealing with heterogeneity | Tad | Anna | |
4 | Mon | Oct. 16 | Topic 4. Mixed-effects models with nested data | Tad | Beth |
Wed | Oct. 18 | Topic 5. GLM with binary & proportional data | Tad | Meghan | |
Fri | Oct. 20 | Topic 6. GLM with zero-inflated data | Tad | Nick | |
5 | Mon | Oct. 23 | Topic 7. Bayesian linear models | Jes | Jamie |
Wed | Oct. 25 | Topic 8. Bayesian inference with prior information | Jes | Nicole | |
Fri | Oct. 27 | Topic 9. Advanced Bayesian model example | Jes | Lizzie | |
6 | Mon | Oct. 30 | Topic 10. Unconstrained ordination | Tad | Anna |
Wed | Nov. 1 | Topic 11. Constrained ordination | Tad | Jamie | |
Fri | Nov. 3 | Topic 12. Comparing multivariate data (symmetric methods) | Jes | Priscilla | |
7 | Mon | Nov. 6 | Mid-term project presentation & discussion | ||
Wed | Nov. 8 | Mid-term project presentation & discussion | |||
Fri | Nov. 10 | Mid-term project presentation & discussion | |||
8 | Mon | Nov. 13 | Topic 13. Visualization of spatial data | Tad | Tyler |
Wed | Nov. 15 | Topic 14. Spatial regression | Jes | Marissa | |
Fri | Nov. 17 | Topic 15. Ordination approach to spatial analysis | Jes | Sandra | |
RECESS | Thanksgiving | ||||
9 | Mon | Nov. 27 | Topic 16. Selected by class: time-series analysis | Lizzie | |
Wed | Nov. 29 | Topic 17. Selected by class: network analysis | Beth | Nicole | |
Fri | Dec. 1 | Topic 18. Selected by class: occupancy models | Nick | ||
10 | Mon | Dec. 4 | Final project presentations | ||
Wed | Dec. 6 | Final project presentations | |||
Fri | Dec. 8 | Final project presentations |
Some possible additional topics: Cluster analysis, Series analysis, structural equation models, occupancy models, phylogenetic contrasts, rarefaction, null models for community analysis, multi-model inference and averaging
Before the first class please read through the computer setup instructions that walk you through how to set up your computer to run R and Rstudio. Even if you have these programs already installed, make sure to check that you are running the latest versions of R and RStudio (which the instructions will tell you how to do).
Our course website runs from a repository on GitHub. You can view this repository here. Notice that the repository has 2 files for each lesson webpage (named 00-lesson-topic), one is an html file (.html) that is displayed as a webpage while the other is a R markdown (.Rmd) file that will allow us to write R code and explanatory text in the same file. The html file is created by R Studio from the R markdown file. The repository also has a folder called “data”. This is where we will put data files used by our example code. Note that this repository can be downloaded by anyone on the internet. If you have data that you wish to use in class but do not wish to share with the entire WWW, you are welcome to email the data files to the rest of the class prior to your lesson.
During class you will be editing the course webpages to include R code for the lesson discussion that you lead. If you are familiar with git and have a GitHub account, you should fork the repository to your account so that you can make changes there. If that is gibberish to you- don’t worry! You can either choose to edit the course webpages by downloading them and emailing any edits to Jes (see computer setup instructions) or you can choose to learn a little git and create you own GitHub account during an optional class session during the first week.
All assigned readings can be obtained for free through Stanford library online resources.