Hello everyone,
I want to see if body weight is different between boys and girls according to age groups. In my data, I have 10 age groups. So to see if the mean weight between boys and girls is different from 0, I want to do the t test.
Since I have multiple groups, I need to take into consideration the issue of multiple testing.
Is there a single command I can add in my following code for ttest:
I can of course do it manually 0.05/10=0.005. However, I want to also see if mean weight differs according to other categorical variables such as BMI, countries, etc. A code will be really helpful and save me a time.
I will need different bonferroni correction for each ttest depending upon the number of test. Correct?
PS: I have really corrected data since children were followed up yearly. (If this makes a difference)
I want to see if body weight is different between boys and girls according to age groups. In my data, I have 10 age groups. So to see if the mean weight between boys and girls is different from 0, I want to do the t test.
Since I have multiple groups, I need to take into consideration the issue of multiple testing.
Is there a single command I can add in my following code for ttest:
Code:
by description2, sort : ttest weight, by(gender)
I will need different bonferroni correction for each ttest depending upon the number of test. Correct?
PS: I have really corrected data since children were followed up yearly. (If this makes a difference)
Comment