Speaking Stata: Loops, again and again
(2020)
Journal Article
Cox, N. J. (2020). Speaking Stata: Loops, again and again. The Stata Journal, 20(4), https://doi.org/10.1177/1536867x20976340
Two commands in official Stata, foreach and forvalues, provide structures for looping through lists of values (variable names, numbers, arbitrary text) and repeating commands using members of those lists in turn. These commands may be used interactiv... Read More about Speaking Stata: Loops, again and again.