Hi
I am looking for a way that can make it easy to provide the results of a series of t-tests. I want to see whether two sample groups are statistically different in their means by year (2010-2020).
Logically, I thought I can do this by running t-tests ten times by separating each sample by year. Using loops such as the foreach command is also one way to make it handy.
Is there any other way to do this? I wonder if there is already a command in Stata for this.
I am looking for a way that can make it easy to provide the results of a series of t-tests. I want to see whether two sample groups are statistically different in their means by year (2010-2020).
Logically, I thought I can do this by running t-tests ten times by separating each sample by year. Using loops such as the foreach command is also one way to make it handy.
Is there any other way to do this? I wonder if there is already a command in Stata for this.
Comment