Skip to content
Topic

Lesson 5: bysort

22 September 2022

The bysort command, along with the use of system variables like _n and _N, can allow you to repeat commands across subgroups in your dataset.