EEB313: Quantitative Methods in R for Biology

Welcome! This website hosts all course contents for EEB313.

Author

Vicki M. Zhang and Mete K. Yuksel

Published

October 7, 2023

1 Syllabus

1.1 Land Acknowledgement

Although our students come from many locations around the world, we wish to recognize the land on which the University of Toronto was built. This land has historically been and still is the the home of the Huron-Wendat, the Seneca, and the Mississaugas of the Credit River.

There is a First Nations House for Indigenous Student Services on campus. Please refer to their web page for more resources and information about honouring our land and their services for students.

1.2 Course Overview

This course covers statistical and data analysis, reproducible quantitative methods, and scientific computing in R to answer questions in ecology and evolutionary biology. Statistical and data analysis, modeling, and computing are essential skills for all biologists. This course is designed to meet a growing demand for reproducible, openly accessible, analytically thorough, and well-documented science. Students will learn to analyze and visualize data, develop mathematical models, and document their research using the R programming language. No prerequisite programming experience is required.

Prerequisites: BIO220H1 and one of EEB225H1, STA288H1, or STA220H1

1.2.1 Time

Tue and Thu 2:10 - 4:00 PM EST.

1.2.2 Class Locations

RW109 (Ramsay Wright first floor computer lab), St. George Campus.

Office hours (in EST)
Mete Weds 11-12pm ESC3044
Vicki Mon 11-12pm ESC3044
Zoe Thurs 4-5pm RW109
Jessie Tues 4-5pm RW109

1.2.3 Contact protocol

Please address all course-related and project issues to both Vicki and Mete, with the exception that questions regarding assignments should be addressed to Zoe and Jessie. Prefix the subject matter with “EEB313”. If you do not receive a reply within 48 hours (excluding weekends), please send us a reminder.

1.3 Diversity and inclusion statement

As students, you all have something unique and special to offer to science. It is our intent that students from all backgrounds and perspectives be well served by this course, that students’ learning needs be addressed both in and out of class, and that the diversity that students bring to this class be recognized as a resource, strength, and benefit.

Diversity can refer to multiple ways that we identify ourselves, including but not limited to race, national origin, language, cultural heritage, physical ability, neurodiversity, age, sexual orientation, gender identity, religion, and socio-economic class. Each of these varied, and often intersecting, identities, along with many others not mentioned here, shape the perspectives we bring to this class, to this department, and to the greater EEB community. We will work to promote diversity, equity, and inclusion not only because diversity fuels excellence and innovation, but because we want to pursue justice.

We expect that everybody in this class will respect each other, and demonstrate diligence in understanding how other people’s perspectives, behaviors, and worldviews may be different from their own. Racist, sexist, colonialist, homophobic, transphobic, and other abusive and discriminatory behavior and language will not be tolerated in this class and will result in disciplinary action, such as removal from class session or revocation of group working privileges. Please consult the University of Toronto Code of Student Conduct for details on unacceptable conduct and possible sanctions.

Please let us know if something said or done in this class, by either a member of the teaching team or other students, is particularly troubling or causes discomfort or offense. While our intention may not be to cause discomfort or offense, the impact of what happens throughout the course is not to be ignored and is something that we consider to be very important and deserving of attention. If and when this occurs, there are several ways to alleviate some of the discomfort or hurt you may experience:

  • Discuss the situation privately with a member of the teaching team. We are always open to listening to students’ experiences, and want to work with students to find acceptable ways to process and address the issue.
  • Notify us of the issue through another source such as a trusted faculty member or a peer. If for any reason you do not feel comfortable discussing the issue directly with us, we encourage you to seek out another, more comfortable avenue to address the issue.
  • Contact the Anti-Racism and Cultural Diversity Office to report an incident and receive complaint resolution support, which may include consultations and referrals.

We acknowledge our imperfections while we also fully commit to the work, inside and outside of our classrooms, of building and sustaining a community that increasingly embraces these core values. Your suggestions and feedback are encouraged and appreciated. Please let us know ways to improve the effectiveness of the course for you personally or for other students or student groups.

Wellness statement

We on the teaching team value your health and wellness. In order to succeed in this class, in university, and beyond, you must balance your work with rest, exercise, and attention to your mental and physical health. Working until exhaustion is NOT a badge of honor. If you are finding it difficult to balance your health and well-being with your work in this class, please do not hesitate to let us know. We are happy to help connect you with resources and services on campus and also to make accommodations to our course plan as needed. Our inboxes are always open, and we are also available for virtual chats by appointment. You have our support, and we believe in you.

Absence policy

If you are feeling unwell, please do not come to class. Instead, take the time to recover fully. Please let us know if you are feeling sick - you will not be penalized for missing a lecture, and we will do our best to ensure that you are up-to-date with class materials when you return.

1.4 Accessibility needs

If you require accommodations for a disability, or have any accessibility concerns about the course or course materials, please notify your course instructors (Mete and Vicki), or contact Accessibility Services, as soon as possible regarding accommodations.

1.5 Course learning outcomes

  1. Develop proficiency in the programming language R.
  2. Use R to apply statistical tools to analyze and interpret data.
  3. Develop an understanding of mathematical models.
  4. Develop proficiency in using the command line and Git.
  5. Integrate appropriate techniques to analyze a variety of data types and formats.
  6. Learn and use techniques and best practices for reproducible, high-quality science.
  7. Learn how to work as part of a research team to produce a scientific product.

1.5.1 Lecture schedule

Week Date Topic Instructor
1 Sep 7 Intro to course, programming, RStudio Vicki
2 Sep 12 R Markdown, project workflows Vicki
2 Sep 14 Base R: Assignment, vectors, functions Mete
3 Sep 19 Data frames, intro to dplyr. Vicki
3 Sep 21 Data wrangling in dplyr Vicki
4 Sep 26 Data visualization in ggplot Vicki
4 Sep 28 Exploratory data analysis Zoe
5 Oct 03 Introduction to statistical inference Mete
5 Oct 05 Simple linear models and generalized linear models Mete
6 Oct 10 Mixed models Mete
6 Oct 12 Mixed models & model selection Vicki/Mete
7 Oct 17 Multivariate statistics Jessie
7 Oct 19 Intro to command line and GitHub Mete/Vicki
8 Oct 24 Model averaging & linear model review Mete
8 Oct 26 Mathematical models in ecology and evolution I Mete
9 Oct 31 Mathematical models in ecology and evolution II Mete
9 Nov 02 Wrap-up, review Zoe/Jessie
10 Nov 07 Reading break -
10 Nov 09 Reading break -
11 Nov 14 Project work
11 Nov 16 Project work
12 Nov 21 Project work
12 Nov 23 Project work
13 Nov 28 Project work
13 Nov 30 Project work
14 Dec 05 Group presentations Everyone

1.5.2 Lecture readings

You will find a list of recommended readings posted under “Resources”. Since there are no exams in this class, you will not be tested on the readings directly. However, we highly recommend that you go through these readings as they were chosen to help you understand lecture material better (e.g., provides context for data that was used) as well as serve as resources for you if you wish to pursue any specific topic further. We also compiled a list of open-access R and statistics resources for your reference. You can find this list in the Readings folder on Quercus.

1.5.3 Assessment schedule

Assignment Type Submitted on Due date Marks
Basic R and dplyr Individual Quercus Sep 28 8
Project proposal Group GitHub Oct 03 4
dplyr and tidy data Individual Quercus Oct 05 8
Data exploration Individual Quercus Oct 12 8
LM, GLM, & LMM Individual Quercus Oct 19 8
Command Line Individual GitHub Oct 26 8
Mid-project update Group GitHub Nov 02 6
Challenge assignment Individual GitHub Nov 17 20
Presentation Group In-class Dec 05 10
Final report Group GitHub Dec 08 20

There are 100 marks in total. Your final course mark will be the sum of your assignment scores, which will be translated to a letter grade according to the official grading scale of the Faculty of Arts and Science.

Assignments will be distributed and submitted in the R Markdown format via Quercus. Assignments will be handed out on Thursdays after class and are due at 8:00 PM on the following Thursday.

The Challenge Assignment is equivalent to a take home exam. The format will be the same as the other assignments, but this assignment is designed challenge you to go a little beyond what was taught in class. It will be distributed on 9:00 AM on Nov 13, and it will be due 11:59 PM on Nov 17. Students are welcome to work in a group on this assignment, but each student must submit their own original work. No extensions will be granted on this assignment except under the same extra-ordinary circumstances akin to those under which an exam might be deferred. We only expect you to do your best!

As per our stance on supporting student’s mental health, we are happy to accommodate a 72-hour extension for one of the assignments, no questions asked. Otherwise, except under extenuating circumstances, there will be a penalty of 5% per day (including weekends) for all late submissions. If you foresee needing an extension, please email both Vicki and Mete as soon as possible. This policy does not apply to the Challenge Assignment, Presentation and Final Report.

1.6 Improving your writing skills

Effective communication is crucial in science. The University of Toronto provides services to help you improve your writing, from general advices on effective writing to writing centers and writing courses. The Faculty of Arts & Science also offers an English Language Learning (ELL) program, which provides free individualized instruction in English skills. Take advantage of these!

1.7 Academic integrity

You should be aware of the University of Toronto Code of Behaviour on Academic Matters. Also see How Not to Plagiarize. Notably, it is NOT appropriate to use large sections from internet sources, and inserting a few words here and there does not make it an original piece of writing. Be careful in using internet sources – most online material are not reviewed and there are many errors out there. Make sure you read material from many sources (published, peer-reviewed, trusted internet sources) and that you write an original text using this information. Always cite your sources. In case of doubt about plagiarism, talk to your instructors and TAs. Please make sure that what you submit for the final project does not overlap with what you submit for other classes, such as the 4th-year research project.

1.7.1 On the use of Generative AI

The knowing use of generative artificial intelligence tools, including ChatGPT and other AI writing and coding assistants, for the completion of, or to support the completion of, the assignments, the challenge assignment, or the final project is prohibited and may be considered an academic offense.

1.8 FAS student engagement programs

There are a few programs on campus aimed at increasing student engagement with their coursework and keeping them socially connected. Recognized Study Groups are voluntary, peer-led study groups of up to 8 students enrolled in the same course. Meet to Complete are online drop-in study sessions for A&S undergrads. These are worth checking out if you are interested in participating in a study group.