how to use if command to ignore the institution which did not appear and execute the rest command : I use STATA. I have a question regarding how to use loop commond to execute this task.
My task is I have mutliple institutions which school_code indicates their ID. And I knew that the ID is in range of 1 to 10000. They appear in the variable of "school_code". But, as mentioned, they did not appear occuasionally.
Therefore, I need a condition commond, "if" for example, to help me to ignore those institution did not appear in the given year automatically.
Thank you for your advice.


