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!
Related Posts with Code to run ttests and effect sizes on many variables at once?
Mean of observations contained in other variableDear Forum, I have a variable, named "cbo02". I want to calculate the mean of the observations of th…
Number of constraints in constrained linear regressionGreetings, I am experimenting with constrained linear regression (cnsreg) using a simple linear reg…
Categorical variables to ordinal for dummy variablesHi all, I am a first time user of Stata currently doing my thesis which is exciting but at the same …
Standardized mortality ratios following multiple imputationI'm honestly a bit unsure of the proper etiquite for estimating SMRs in an (multiple imputation) MI …
Too many variables in loopHello I am using the loop function for some simple merges of 5 datasets. I did it before and it work…
Subscribe to:
Post Comments (Atom)
0 Response to Code to run ttests and effect sizes on many variables at once?
Post a Comment