Dear Stata forum,
I have questions about the practices of comparing subgroups in my logit models. I would like to compare the probabilities of more frequent contact between sisters and brothers, taking into account respondents' partnership status and the gender composition of the respondent and their specified sibling.
I have realized that to assess the existence of differences between groups, I may have to perform pairwise comparisons of margins, rather than relying solely on confidence intervals for each group in the marginsplot for the results of the main model. This is because some confidence intervals overlap, and the lengths of bars have significant variations.

I have three questions as I am not sure if it makes sense and I am doing it right.
First, am I right that I should conduct pairwise comparisons to see which groups have significant differences? Second, given that the observations and confidence intervals vary for each group, should I apply any adjustments, such as Bonferroni's, Sidak's, or Sheffe's methods?
Third, there are 496 comparisons to make, due to the variables having 8 categories and 4 categories, respectively. Is there a way to visualize the results for comparisons between groups whose confidence intervals do not overlap? Another question related to these two questions is, since there are so many groups, would the differences make sense? (I am thinking that with a larger number of groups, the likelihood of having two groups with significant differences would also increase. But maybe that's why adjustments are needed?)
Below are the codes I plan to run for the pairwise comparison:
Thank you very much in advance for the help!!
I have questions about the practices of comparing subgroups in my logit models. I would like to compare the probabilities of more frequent contact between sisters and brothers, taking into account respondents' partnership status and the gender composition of the respondent and their specified sibling.
I have realized that to assess the existence of differences between groups, I may have to perform pairwise comparisons of margins, rather than relying solely on confidence intervals for each group in the marginsplot for the results of the main model. This is because some confidence intervals overlap, and the lengths of bars have significant variations.
I have three questions as I am not sure if it makes sense and I am doing it right.
First, am I right that I should conduct pairwise comparisons to see which groups have significant differences? Second, given that the observations and confidence intervals vary for each group, should I apply any adjustments, such as Bonferroni's, Sidak's, or Sheffe's methods?
Third, there are 496 comparisons to make, due to the variables having 8 categories and 4 categories, respectively. Is there a way to visualize the results for comparisons between groups whose confidence intervals do not overlap? Another question related to these two questions is, since there are so many groups, would the differences make sense? (I am thinking that with a larger number of groups, the likelihood of having two groups with significant differences would also increase. But maybe that's why adjustments are needed?)
Below are the codes I plan to run for the pairwise comparison:
Code:
logit contact_sib_bi close_3_options i.ego_rom_relation_v4##ib8.genderpair
Code:
margins ego_rom_relation_v4#genderpair, pwcompare(effects) mcompare(bonferroni)
Comment