In addition to using the command "if wave=certain number," is there another way to restrict data to certain ways? There are three waves in the panel data I use. Because a control variable is only available in waves 2 and 3, I am thinking of restricting my analysis to only these two waves. I cannot use "if wave" command because it does not go with the weight variable I include in my regression.

Thank you for your advice.