I suspect I am asking something quite simple, however after reviewing the ttest help file I am still quite stuck
I have a hospital dataset with episode level records for 19 procedures before and after an intervention: Int1 (a binary variable before and after intervention)
I am attempting to undertake a ttest to compare mean age, gender, IMD, charlson, by Int1, and produce a summary table showing confidence intervals and p values.
I currently do not know any other way of doing this apart from running: ttest age if procedure=="procedure1", by(Int1) 76 times for different combinations of procedure, and patient characteristics
I would be very grateful for any advice regarding a quick way to do this, including exporting results using eststo/etstab, which I have so far found unsatisfactory for this purpose
Thank you in advance, I find the advice on this forum extremely useful.