Hi,
I performed t-tests for many variables in my dataset. I have written code as following:
foreach var of varlist var1 var2 var3 var4 {
di "`var'"
ttest `var', by(event_indicator)
}
How can I only save t-statistic and p-value from these results?
Many thanks!
Related Posts with Output t-test results
How to create an iterative procedure to check variable by variable whether a given observation satisfies some criteria - string variablesDear all, I am working with string data and I would like to retrieve the most important word from a…
Which family and link for GLM?Hello! I am trying to find the right model that matches the distribution of my data. I use cross-se…
if time dummies are dropped in system GMM; How we can interpret? - xtabond2Hello, I need your help. I hope you are staying safe. I have an unbalanced panel dataset. It includ…
Extracting first five and last three parts from string variable.Dear Stata users, I hope you are staying safe. I have data set with code and name like this. Code…
Clustering standard errors at industry levelDear Statalist members, Currently my data size is about 12,000 observations. The topic of my thesis…
Subscribe to:
Post Comments (Atom)
0 Response to Output t-test results
Post a Comment