AI-Powered Coding and Data Analysis

Type to search this site's pages, posts, publications, talks, and more.

AI-Powered Coding and Data Analysis

erik-westlund.academic.page/courses/ai-powered-coding-and-data-analysis

AI-Powered Coding and Data Analysis

Erik Westlund · Department of Biostatistics, Johns Hopkins Bloomberg School of Public Health

Last offered Fall 2026, November 12, 2026

Workshop Goals

The objectives of this workshop include:

  1. Provide foundational knowledge on AI and how LLMs work

  2. Discuss how they can be used for statistical analysis in health research

  3. Assist participants with installing AI agent software on their computers

  4. Practice using AI agents for several types of statistical analysis

  5. Discuss and demonstrate how to use AI tools safely with PHI, especially when doing analysis on secure enclaves

We will follow a single set of slides, linked below. Each exercise has a Download ZIP link and a GitHub repository link beneath it, alongside its module guide. Examples are in R and work well with RStudio, Positron, or any other editor that can work with AI agents.

Software

Each exercise project has a setup.R file. Open the project and run source("setup.R") once in the R console to install the packages it needs.

Framework demo

If time permits, I will demonstrate Framework, my bespoke way of setting up analysis projects, managing skills, and sharing results.

Modules

Module 5: LLM Skills

Context files and skills: what they contain, where each tool reads them, and a side-by-side comparison of the same ggplot2 task with and without a skill.

Module 8: AI Safety in Health Research

An 11-step workflow between a SECURE MACHINE and an AI-ENABLED MACHINE. The exercise ZIP holds two copies of one project: secure/ has the protected data, and ai-enabled/ has none. Copy reviewed metadata and approved simulated data by hand; move code with Git. The guide marks secure-machine steps in red and AI-enabled-machine steps in green.

Offerings

Fall 2026

Yale School of Public Health