Hello.
I cant seem to work out the coding that replicates the following function, which when copied from the 'command copied from clipboard', looks like:
'time_ann_dif PriceSensitive, sort : ttest Volume, by(Pre_or_Post_Colo) unequal'. Does someone know how this can be done?

Essentially I want to run a ttest but with multiple variable, then save the output using putexcel. I know how to use putecel but cant get the code working for multiple variables.
As an FYI time_ann_dif has values that range from -30 to 30, while PriceSensitive has values that are TRUE or FALSE.

Thanks