Skip to main content

Syllabus

GPH-GU 2182: Statistical Programming in R · Fall 2026

Course Information

Field Details
Course GPH-GU 2182: Statistical Programming in R (3 credits)
Schedule Wednesdays 2:00 PM – 4:40 PM
Location 70 Washington Sq S (Bobst Library), Room LL138
Semester Fall 2026
Instructor Yang Feng, PhD (yf31@nyu.edu) · Office: 708 Broadway, Room 415
Instructor Office Hours Fridays 3:00 PM (Zoom link available on Brightspace) or by appointment
Course Assistant Sabrina Wu (jw6557@nyu.edu)
TA Office Hours Wednesdays 10:00 AM (Zoom link available on Brightspace)
Course Website https://gph-2182.github.io/
Classroom 50 https://classroom50.org/

Course Description

R is one of the most popular programming languages in statistics and data science. This course will introduce various R programming topics, including R objects, data visualization, data import & export, data manipulation, creating functions and iterations for statistical simulations, and writing high-quality reports with R Markdown. The course will focus on public health datasets as illustrations to best meet the practical needs of GPH students but is also open to those of other backgrounds. By the end of the course, students will be able to comfortably program in R for effective data preprocessing, analysis and presentation. This course does not require prior experience in programming or statistics and serves as a foundation for other courses in biostatistics, epidemiology, and data science.


Course Overview

This course equips graduate students with foundational and modern computing skills for reproducible public health data science. Using a dual-track pedagogical approach, students learn fundamental computational primitives alongside modern, expressive tidyverse workflows. The curriculum covers Quarto reproducible publishing, vectors, matrices, lists, data frames, publication-quality graphics with ggplot2, robust data wrangling with dplyr and tidyr, string and factor manipulation, functional programming with purrr, and Monte Carlo simulation. Students will also master responsible, ethical AI-assisted programming to accelerate learning, debugging, and code documentation while building genuine human fluency.


Course Format

This is a 3-credit in-person course, including 14 in-person class sessions (14 × 160 minutes = 2,240 minutes) and 10 minutes of individual final project consultation, totaling 2,250 minutes of instructional time.


Learning Objectives & Competencies

Learning Objective Competency Course Component
1. Develop R and Quarto code for reproducible data analysis and publication. Use statistical software proficiently for data management, manipulation, storage, resource sharing, and analysis. (BC-3) Lessons 1, 10, 12, 13; In-class 1, 10, 12, 13; Weekly Exercises 1, 9, 11, 12; Final Project
2. Create and manipulate foundational R objects (vectors, matrices, lists, and data frames). Use statistical software proficiently for data management, manipulation, storage, resource sharing, and analysis. (BC-3) Lessons 2, 3, 7; In-class 2, 3, 7; Weekly Exercises 2, 3, 7; Quizzes 1, 3; Final Project
3. Apply R for publication-quality data visualization with ggplot2. Use statistical software proficiently for data management, manipulation, storage, resource sharing, and analysis. (BC-3)
Communicate study results clearly and accurately in written reports and with effective data visualization methods. (BC-4)
Lessons 4, 12; In-class 4, 12; Weekly Exercises 4, 11; Quiz 2; Final Project
4. Apply R for real-world data import, type cleaning, validation, and export. Use statistical software proficiently for data management, manipulation, storage, resource sharing, and analysis. (BC-3) Lessons 3, 6; In-class 3, 6; Weekly Exercises 3, 6; Quizzes 1, 3; Final Project
5. Apply R for advanced data wrangling, relational joins, and tidy reshaping. Translate hypotheses and associated outcome measures into appropriate study designs. (BC-1)
Use statistical software proficiently for data management, manipulation, storage, resource sharing, and analysis. (BC-3)
Lessons 5, 6, 7; In-class 5, 6, 7; Weekly Exercises 5, 6, 7; Quizzes 2, 3; Final Project
6. Implement custom functions, iteration, and Monte Carlo statistical simulations. Use statistical software proficiently for data management, manipulation, storage, resource sharing, and analysis. (BC-3) Lessons 8, 9, 10; In-class 8, 9, 10; Weekly Exercises 8, 9, 10; Quizzes 4, 5; Final Project
7. Synthesize findings into a reproducible statistical report with Quarto and responsible AI auditing. Use statistical software proficiently for data management, manipulation, storage, resource sharing, and analysis. (BC-3)
Communicate study results clearly and accurately in written reports and with effective data visualization methods. (BC-4)
Lessons 1, 12, 13, 14; In-class 1, 12, 13; Weekly Exercises 1, 11, 12; Final Project

Pre-Requisites

No Pre-requisites.


Course Requirements and Expectations

  • Attendance (5%): Checked every session. Up to 2 excused absences per semester carry no penalty. To be excused, submit the Excused Absence Request form at least 60 minutes before the class start time; you will receive an automatic email with the outcome. Your first excused absence in a course needs no documentation; every further request must include documentation uploaded with the form. Requests inside the 60-minute window or after class are not excused unless it was a genuine emergency and documentation is uploaded with the form; the instructor reviews those case by case.
  • In-Class Paired Exercises (10%): Active paired programming in every session. Graded for completeness and effort (not strict correctness). Lowest 2 scores dropped.
  • Weekly Exercises (35%): 12 autograded assignments submitted via GitHub. Immediate automated feedback upon push. Lowest 2 scores dropped. Late: 20% within 24h, 40% within 48h, zero after 48h.
  • In-Class Quizzes (20%): Five 20-minute paper-based, closed-book quizzes (Weeks 3, 5, 7, 9, 11) during the last 30 minutes of class. The lowest quiz score is dropped (best 4 of 5 count, 5% each). Quizzes cannot be made up. A quiz missed with an excused absence (absence form submitted at least 60 minutes before class) uses the drop; if a second quiz is missed with an excused absence, the quiz component is pro-rated over the quizzes you took. An unexcused missed quiz scores zero.
  • Final Individual Project (30%): Comprehensive reproducible public health analysis with Quarto report, 5-minute video walkthrough, and AI-use appendix. Released Week 10; due Dec 16 at 11:59 PM.

Grading Components

Component Weight Policy
Attendance 5% Checked every session; up to 2 excused absences (form due 60 min before class)
In-Class Exercises (14) 10% Paired programming; lowest 2 dropped
Weekly Autograded Exercises (12) 35% Distributed via GitHub; lowest 2 dropped
In-Class Quizzes (5) 20% Paper-based (Weeks 3, 5, 7, 9, 11); lowest 1 dropped; no make-ups, excused misses pro-rated
Final Individual Project 30% Quarto report + Video Walkthrough + AI Appendix
Total 100%

Grading Scale (Graduate Courses)

  • A: 94–100 · A−: 90–93
  • B+: 87–89 · B: 83–86 · B−: 80–82
  • C+: 77–79 · C: 73–76 · C−: 70–72
  • F: Below 70

Extra Credit: Textbook Proofreading (up to +2%)

Our textbook, R Programming: Zero to Pro, is open source, and you can help improve it while you study. You may earn extra credit added directly to your final course grade:

  • +0.5% for each pull request to r02pro/r02pro_source that gets merged (typos, grammar, code fixes; use the edit button on any book page).
  • +0.25% for each issue the instructor labels accepted (confusing explanations, wrong output, suggestions you cannot fix yourself).
  • Capped at +2% total.

Rules: contributions count from Sep 2 through Dec 16, 2026 (11:59 PM ET); submit under the GitHub account you use for this course; search existing pull requests and issues first, since the first report wins and duplicates earn no credit; each pull request should cover one section; you must personally verify every problem you report (see the course AI policy). Read the contributing guide before your first submission. As a bonus, every contributor is permanently named in the book’s acknowledgments.


Statement on the Use of AI Technology

This course uses a Three-Zone AI Policy: - 🟢 Green Zone (Permitted with Citation): Weekly exercises, in-class practice, and final project development. You may consult LLMs (ChatGPT, Claude, GitHub Copilot) for code explanations, syntax queries, and debugging hints. All AI assistance must be acknowledged in an AI-Use Appendix. - 🟡 Yellow Zone (Guided / Supervised): In-class AI auditing activities where we evaluate AI-generated code quality and hallucinated arguments. - 🔴 Red Zone (Strictly Prohibited): In-class paper quizzes, uncredited code submission, or presenting AI-generated work as your own independent reasoning.

See the dedicated AI Policy Page for full guidelines and citation templates.


Reading & Reference Materials

  • Primary Textbook: Feng, Y. (2026). R Programming: Zero to Pro (R02Pro). Available online: https://r02pro.github.io/
  • Supplementary Reference: Wickham, H., Çetinkaya-Rundel, M., & Grolemund, G. (2023). R for Data Science (2nd ed.). O’Reilly. Available online: https://r4ds.hadley.nz/

GPH Community Statement

The NYU School of Global Public Health (GPH) is committed to maintaining and celebrating a diverse, just, and inclusive environment for all of our students, faculty, and staff around the world. GPH promotes a welcoming learning environment that embraces cultural humility, and respects and values differences. These differences can include race, ethnicity, religion, gender identity, sexual orientation, physical, mental and emotional abilities, and socioeconomic status. In this course, we encourage all students to share and discuss different perspectives, beliefs, and experiences while treating all with dignity and respect.


Statement of Academic Integrity

The NYU School of Global Public Health values both open inquiry and academic integrity. Students in the program are expected to follow standards of excellence set forth by New York University. Such standards include respect, honesty and responsibility. The GPH does not tolerate violations to academic integrity including plagiarism, cheating, unapproved duplicate submissions, or presenting work generated by commercial firms or AI tools as your own independent effort without explicit authorization and citation.

Students with Disabilities

Students with disabilities should contact the Moses Center for Students with Disabilities regarding the resources available to them and to determine what classroom accommodations should be made available. More information can be found at Moses Center for Student Accessibility. Please provide your accommodation letter as early in the semester as possible.