Dear Kevin,
Thank you for your reply. I have another question. We have used the command that you provided of linear regression, and this was the outcome:
![https://ibb.co/FYmk9wQ][1] My question now: How could I create a loop, to perform the command for many SNPs? The SNP can have three levels [AA, AB, BB]. In the model, we also want to adjust for the number of studies (N=5) and sex, also we want to include the gender as an independent. The program needs to go one column to the right in every new loop but keep the same variable (campesterol)?
Thank you in advance