Course Schedule
Week One: Introduction: Git, R Studio, and the Tidyverse
- Weekly Notes:
- Weekly Materials:
- Wednesday August 24: Course Overview and Class Conversation
- Friday August 26: Intro to R Studio, Git, and rstanarm.
Week Two: Regression Overview
- Weekly Reading: ROS Chapter 1
- Weekly Notes: CH1: 1.1 - 1.4 PDF skeleton (Rmd Source Code)
-
Weekly Assignments (due Friday September 2): HW1 (Download GitHub Repo)
- Monday August 29:
- Wednesday August 31:
- Friday September 2: Recorded Lecture
Week Three: More Regression
- Weekly Notes: CH1: 1.4 - 1.6 PDF skeleton (Rmd Source Code)
- Weekly Assignments (due Friday September 9):
- Monday September 5: (Labor Day, No Class)
- Wednesday September 7:
- Friday September 9:
Week Four: Data
- Weekly Reading: ROS Chapter 2
- Weekly Notes:CH2: PDF Skeleton (Rmd Source Code)
- Weekly Assignments (due Friday September 16):
- Monday September 12: video recording
- Wednesday September 14: video recording
- Friday September 16: video recording
Week Five
- Weekly Reading: ROS Chapter 3
- Weekly Notes:
- Weekly Assignments (due Friday September 23):
- Monday September 19:
- Wednesday September 21: video recording
- Friday September 23: Monte Carlo Demo (Rmd Source Code) video recording
Week Six
- Weekly Reading: ROS Chapter 4 / ROS Chapter 5
- Weekly Notes:
- Weekly Assignments (due Friday September 30):
- Monday September 26: video recording: part 1, video recording: part 2, video recording: part 3
- Wednesday September 28: video recording
- Friday September 30: video recording
Week Seven
- Weekly Reading: ROS Chapter 6 + ROS Chapter 7
- Weekly Notes:
- Weekly Assignments (due Friday October 7):
- Monday October 3: video recording
- Wednesday October 5: video 1, video 2
- Friday October 7: NO CLASS: Video recording
Week Eight
- Weekly Reading: ROS Chapter 8 & ROS Chapter 11
- Weekly Notes:
- Weekly Assignments (due Wednesday October 19):
- Monday October 10: video recording
- Wednesday October 12: Lab: focused on checking model assumptions (RMD Source Code) video recording
- Friday October 14: (video recording 1) (video recording 2) (video recording 3)
Week Nine
- Weekly Reading: ROS Chapter 8
- Weekly Notes:
- Monday October 17: video recording
- Wednesday October 19:
- Friday October 21: video recording
Week Ten
- Weekly Reading: ROS Chapter 9
- Weekly Notes:
-
Weekly Assignments (due Friday October 28): Project 1 (Download GitHub Repo)
- Monday October 24:
- Wednesday October 26: class recording
- Friday October 28: NO CLASS: ASA Chapter Meeting (meeting registration) (meeting link)
Week Eleven
- Weekly Reading: ROS Chapter 10
-
Weekly Notes:
-
Weekly Assignments (due Friday November 4): HW8 (Download GitHub Repo) (HW8 Key) (HW8 Key RMD)
- Monday October 31: video recording 1, video recording 2
- Wednesday November 2:
- Friday November 4: video recording
Week Twelve
- Weekly Reading: ROS Chapter 11
- Weekly Notes:
- Weekly Assignments:
- Monday November 7: no class, work on take home exam
- Wednesday November 9: In Class Exam
- Friday November 11: no class, veterans day
Week Thirteen
- Weekly Reading: ROS Chapter 12
- Weekly Notes:
-
Weekly Assignments : Project 1 Final Submission Due Monday November 21st (Note projects can be submitted until Monday November 28th at 8AM, but projects submitted by November 21st will get a 5 point bonus)
- Monday November 14: video lecture
- Wednesday November 16: video lecture 1 video lecture 2
- Friday November 18: video lecture
Week Fourteen
- Monday November 21: no class, fall break
- Wednesday November 23: no class, fall break
- Friday November 25: no class, fall break
Week Fifteen
- Weekly Reading: ROS Chapter 13
- Weekly Notes:
- Weekly Assignments (due Friday December 2):
- Monday November 28: video lecture
- Wednesday November 30: video lecture
- Friday December 2: video lecture 1, video lecture 2
Week Sixteen
- Weekly Reading: ROS Chapter 14 & Chapter 15.1 - 15.2
- Weekly Notes:
- Weekly Assignments (due Sunday December 11 at 9 AM):
- Monday December 5: video lecture
- Wednesday December 7: video lecture
- Friday December 9: Class Review Session video lecture video lecture, part 2
Week Seventeen
- Weekly Notes: CH 15 PDF Skelton (RMD Source Code)
- Virtual Lecture GLMs
- Weekly Assignments:
- Take Home Exam (assigned December 9th, due Friday December 16th at 9 AM) PDF (Download GitHub Repo)
- In Class Exam (optional, tests will be in the Math Testing Center, Wilson 1-110)
- Monday 9 - 5
- Tuesday 9 - 5
- Wednesday 11 - 5
- Thursday 9 - 3
A PDF of the syllabus is available.
Course Description
This course will introduce linear models and generalized linear models using the software package R. In addition to the necessary linear algebra and statistical computing, the course will emphasize reproducible research using R Markdown, version control with GitHub, and report writing.
Learning Outcomes:
- Ability to run statistical analyses in R while saving code and output in a single “package”.
- Ability to interpret computer output from linear models.
- Understand the derivation of generalized least squares estimates.
- To know when the Gauss-Markov theorem applies and what it provides.
- To use diagnostic plots to check the assumptions of linear models.
- To interpret results from Poisson and logistic regression models.
- Ability to state the scope of inference for a study.
- To understand when causal inference can be made from observational studies.
Prerequisites
- Required: STAT 412 or STAT 512 or similar
Textbooks
- Regression and Other Stories, by Andrew Gelman, Jennifer Hill, and Aki Vehtari (Preferred)
- Data Analysis Using Regression and Multilevel/Hierarchical Models, by Andrew Gelman and Jennifer Hill
Additional Resources
Analysis, data visualization, and version control procedures will be implemented with:
- R / R Studio
- Git / Github
For additional resources see:
- R for Data Science, https://r4ds.had.co.nz
- Happy Git and GitHub for the useR, https://happygitwithr.com
Office Hours
- Tuesday: 10:30 - 12
- Friday: 11:30 - 1
Course Policies
Grading Policy
-
30% of your grade will be determined by weekly homework assignments. Students are allowed and encouraged to work with classmates on homework assignments, but each student is required to complete their own homework.
-
20% of your grade will be determined by a midterm exam.
-
20% of your grade will be determined by a final exam.
-
30% of your grade will be determined by two projects.
Collaboration
University policy states that, unless otherwise specified, students may not collaborate on graded material. Any exceptions to this policy will be stated explicitly for individual assignments. If you have any questions about the limits of collaboration, you are expected to ask for clarification.
In this class students are encouraged to collaborate on homework assignments, but exams and projects should be completed without collaboration.
Academic Misconduct
Section 420 of the Student Conduct Code describes academic misconduct as including but not limited to plagiarism, cheating, multiple submissions, or facilitating others’ misconduct. Possible sanctions for academic misconduct range from an oral reprimand to expulsion from the university.
Disabilities Policy
Federal law mandates the provision of services at the university-level to qualified students with disabilities. If you have a documented disability for which you are or may be requesting an accommodation(s), you are encouraged to contact the Office of Disability Services as soon as possible.
COVID-19 Information
Face masks will be recommended, but not required, for students, faculty and staff in campus buildings at Montana State University. Face coverings can help slow the spread of the virus that causes COVID-19 via droplets from sneezes, coughs or even talking over distances up to 6 feet. Since people can carry and spread the virus without showing any symptoms of it — or with very mild symptoms — wearing a face covering can help protect those around you and the community at large. Montana State University strongly recommends students, faculty and staff wear face masks in indoor public spaces, in accordance with the Centers for Disease Control recommendations. Montana State University encourages students, faculty and staff to take advantage of convenient, on-campus clinics for the COVID-19 vaccine. Schedule your appointment by going to: www.montana.edu/health/coronavirus.
Please evaluate your own health status regularly and refrain from attending class and other on-campus events if you are ill. MSU students who miss class due to illness will be given opportunities to access course materials online. You are encouraged to seek appropriate medical attention for treatment of illness. In the event of contagious illness, please do not come to class or to campus to turn in work. Instead notify me by email about your absence as soon as practical, so that accommodations can be made. Please note that documentation (a Doctor’s note) for medical excuses is not required. MSU University Health Partners - as part their commitment to maintain patient confidentiality, to encourage more appropriate use of healthcare resources, and to support meaningful dialogue between instructors and students - does not provide such documentation.