Hi,
I’m trying to put categories of two variables on a box plot, but not sure how to do it.
I have a y variable and I want to show its mean, 25th and 75th percentile by four categories. First three categories are in variable group123 and the combination of both group 2 and 3 is in variable group4. That is the reason its not possible to make a 4-category variable because the fourth category (variable group4) are the respondents that are in either category 2 and 3 of the group123 variable.
I get two box plots by commands below but is it possible to put them both in one graph? Have the group4 as fourth boxplot in the first graph?
Please, tell

I’m trying to put categories of two variables on a box plot, but not sure how to do it.
I have a y variable and I want to show its mean, 25th and 75th percentile by four categories. First three categories are in variable group123 and the combination of both group 2 and 3 is in variable group4. That is the reason its not possible to make a 4-category variable because the fourth category (variable group4) are the respondents that are in either category 2 and 3 of the group123 variable.
I get two box plots by commands below but is it possible to put them both in one graph? Have the group4 as fourth boxplot in the first graph?
Code:
graph box y, over(group123) graph box y, over(group4)
Comment