Thank you Romalpa Akzo. I note I am working with a very large panel dataset with thousands of variables in each wave, which may be one of the reasons I was originally shown to include the keep wanted variables code inside the loop. Noting this, do you still consider it better to move the keep variables code to outside the loop? If so, should I change any other code in #8?
Your suggested code uses a 'foreach' loop. Do you suggest I change from using a 'forvalues' loop given my situation?
Your suggested code uses a 'foreach' loop. Do you suggest I change from using a 'forvalues' loop given my situation?
Comment