Hi!
I want to make a box plot of distribution of 6 different scores (score 1-6) by a grouping variable (group, values 0 and 1). Using the following syntax, I get the shown box plot in Stata.
graph box Score1 Score2 Score3 Score4 Score5 Score 6, over(group)
[ATTACH=CONFIG]temp_20952_1610177025666_279[/ATTACH]
However, I want my box plot to compare score 1 between groups 0 and 1, then score 2 between groups 0 and 1, etc, and not first all scores for group 0 and then for group 1. So the box plot should look something like this:
[ATTACH=CONFIG]temp_20953_1610177485015_356[/ATTACH]
I can not figure out how to manage this in Stata. Can anybody help me?
Related Posts with Changing the order of bars in a box plot
Computing IPW estimator by handHello everyone, For my project, I try to know if a certain type of policy ("pol", which is a dummy)…
Bar Chart PercentilesHello, I plotted a bar graph of the education level agains the mean of the average pay. Because of …
hausman test problemDear all, I am working with panel data and when I use the command: hausman fe re, force, I get the…
Combining a newly constructed dummy variables to one categorical variable for analysis/refcatDear Statalist, I have currently created four variables about family status: 1) Parents living toge…
New to SSC mbitobit - Bivariate Tobit modelDear all, Thanks to Professor Baum, A new command is available in SSC. -mbitobit-. This command re-a…
Subscribe to:
Post Comments (Atom)
0 Response to Changing the order of bars in a box plot
Post a Comment