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
Advice on Reshaping/Collapsing Data on Resident Stays to a Dataset on Facility OccupancyDear all, I am working with nursing home data, and would greatly appreciate some advice on how to e…
Sankey visual analysisHi, I am trying to use Sankey to visually describe longitudinal patterns/flow in Stata 17. (I have …
save 2sls results in matrixHi statalist, The following code is for my 2sls model. I wanted to store the results into a matrix …
Getting rid of unwanted missing value in a variableHi, I have the following variable "coeff" Code: * Example generated by -dataex-. To install: ssc …
Need help looping over string valuesHello, I want to loop over the values of a string variable to create a Word document titled after e…
Subscribe to:
Post Comments (Atom)
0 Response to Output t-test results
Post a Comment