Using local macros in a foreach loop
One of the great features of Stata is the local macro construct that allows macro substitution or expansion. This video walks through an example of using local macros in the context of foreach loops in a regression model. My thanks to Arvind Sharma for pointing out an error at around 5:50 in the video. I have added an annotation at that point with the correction.

▶︎
Using local macros in Stata

▶︎
Introduction to Programming Loops in Stata

▶︎
STATA for beginners course: Stats basics, creating variables, data entry, descriptive stats

▶︎
Stata Tips: Macros

▶︎
Spotify Top Pop Hits 2026 🎧 Bruno Mars, Lady Gaga, Taylor Swift, Charlie Puth, Ed Sheeran,The Weeknd

▶︎
STATA Workshop

▶︎
Foreach loop in Stata: A detailed explanation | Stata Tutorial

▶︎
03d ImageJ Macro programming: Conditions and loops

▶︎
Dealing with Duplicate Observations in STATA

▶︎
Deep House Mix 2026 | Emotional Night Drive, Vocal House, Nu Disco | Chill Mood

▶︎
Simple Code, High Performance

▶︎
Nervous System Regulation (999 Hz) | 1 hour handpan music | Malte Marten

▶︎
What's it like–Getting started in Stata 15

▶︎
Local and Global Macros in Stata

▶︎
How Rockstar fit an entire city into PlayStation 2 memory

▶︎
Something is jamming GPS over Europe. Here's what we found

▶︎
How Stata Treats Missing Values

▶︎
Stata Lecture 13: Understanding Foreach, Forvalues, and Levelsof Loop

▶︎
2026 Relaxing Piano & Birdsong 🕊️ Calm Mind, Deep Sleep, Stress Relief & Peaceful Nature Ambience

▶︎
