Skip to main content

Statistical Programming in R

GPH-GU 2182 · Fall 2026 · NYU School of Global Public Health

Wednesdays 2:00–4:40 PM · 70 Washington Sq S (Bobst), Room LL138 · Sep 2 – Dec 9, 2026 (no class Oct 14)

ImportantAnnouncement (Sep 11): excused absences and quiz make-ups

All excused-absence requests now go through the Excused Absence Request form.

  • Submit at least 60 minutes before class (by 1:00 PM on Wednesdays). Later requests, or requests after class, are not excused unless it was a genuine emergency and you attach documentation.
  • One absence per course needs no documentation. Every further request must include a supporting document uploaded with the form (clinic note, conference acceptance, interview confirmation, etc.).
  • You get an automatic email with the outcome within a minute. If documentation needs review, a second email follows with the decision. Please use the form rather than emailing about absences.
  • Quizzes cannot be made up. With an excused absence, your lowest-quiz drop absorbs the first missed quiz; a second excused miss is pro-rated over the quizzes you took. A quiz missed without an excused absence counts as zero.

Details are in the syllabus.

Welcome! This course teaches R programming for the full data-analysis workflow: wrangling, visualization, simulation, and reproducible reporting with Quarto, using public-health data throughout. You will also learn two skills that now define professional statistical programming: managing code with Git and GitHub, and using AI coding assistants responsibly (prompting, verifying, and debugging AI-generated code).

No prior programming or statistics experience is required.

How the course works

  • Hands-on classes. Every session alternates short live-coding demos with paired exercises, so you write code in every class.
  • Instant feedback. Weekly exercises are submitted on GitHub and checked automatically: push your work, see which questions pass, revise, and resubmit until the deadline.
  • AI, embraced and verified. AI tools are allowed on homework and the project (with disclosure), taught explicitly in Week 8, and set aside during short in-class quizzes where your own fluency is certified.
  • One real project. The course builds to an individual analysis of a public-health dataset: a reproducible Quarto report, a GitHub repo, and a 5-minute video walkthrough.

Getting started (before Week 1)

  1. Install R, then RStudio Desktop (both free).
  2. Create a free GitHub account with your NYU email.
  3. That’s it. We will set up everything else together in the first class.

Step-by-step instructions, including installing Git and connecting it to RStudio, are in the setup guides. Those pages stay up all semester, so use them as the reference whenever something breaks.