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.
Related Posts with help with t tests and summary statistics
keep observations if first 2 character of the string is capital letterI have a dataset where the variable x is a string. I need to keep only observations at which the fir…
Latent growth curve modelingDear experts, I am currently trying to fit an unconditional growth curve model (as a first step befo…
adjustrcspline errorI'm trying to fit an stcox model with cubic splines to see the association between mortality and rat…
Compare coefficients with xtreg i.year and feHello, I have two models: Model A: Y = α1 + β1X1 + Σθ∙C + firm-fixed effect + year-fixed effect M…
HeckmanHi, How do I apply weights in Heckman selection model? Thank you …
Subscribe to:
Post Comments (Atom)
0 Response to help with t tests and summary statistics
Post a Comment