Comparing Values within a column


I have a column with nominal values. Each value represents a social group. I want to compare the results for social group 1 vs social group 2. And, compare these with the third social group.

Just need a suggestion.

Could you please share a reproducible example?


Let’s say we have this is the participants. Doing social analysis, shows the following stats. I want to compare the results between the variable labels.


please have a look at the RStudio Community FAQ to see what a reprex is and how you can create one yourself.

Regarding your (statistical) question, if you want to compare differences in mean between groups (e.g. is there a statistically significant difference in mean between all groups), you can use an ANOVA. You can do post-hoc analysis afterwards to further adress your research question.

Kind regards

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.