Hi there, I am fairly new to Stata but especially new to loop commands. I am trying to replicate a loop from a tutorial video but I am not having very good luck at it. If you could help me with properly writing out the loop command so it will work, I would greatly appreciate it.


This is the code from the video, where the loop command is formatted like this:
Array


Here is my code, how can I format this like the one above? Am I simply writing it all out incorrectly? I apologize if this is extremely simple and I am just not seeing a silly error.

Array