I have about 20 variables that I would like to conduct two sample t-tests (with unequal variances) and calculate effect sizes for. Is there a way that I can have stata conduct these analyses on all 20 variables without me having to type out the code 20 times?

Alternatively, I would also be fine with only running ttests on all 20 variables and exporting the p-values into an excel document where I can quickly identify which ones to calculate effect sizes for.

Thanks!