I would like to test the following hypothesis for the data below:
H0: μ1 = μ2 = μ…
The mean of the populations are all equal.
H1: μi ≠ μj for at least one i,j
The mean of the populations are not all equal.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input byte Group double RBC 1 3.94 1 3.94 1 3.9 1 3.95 1 3.94 1 3.98 1 3.91 1 3.97 1 3.94 1 3.97 2 4 2 4 2 4 2 3.99 2 3.97 2 4.05 2 3.99 2 4.03 2 3.98 2 4.03 end
Array
Is there a test in Stata that can give me exactly the same output? I have Stata 15.
Thank you in advance.
Best,
Amanda
0 Response to Test for comparing means of populations
Post a Comment