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
dummy variable in xtreg, fe? Greetings to all I am working on a model with panel data and I want a control with a dummy variable…
How to compare regression models for survey data? Usually, we use the AIC value (estat ic) to compare regression models. But estat ic command doesn't…
Cross-over RCT - multiple regression?First time posting a question, apologizes if I am not doing this correctly. I have a placebo-contro…
Interaction: ## versus * - OR are differentDear Statalist: I have some queations METHOD ONE: I created the following interaction variables usi…
Etregress ML vs Etregress Control Function vs 2slsHello. I have a continuous outcome variable, binary endogenous variable, and continuous instrument. …
Subscribe to:
Post Comments (Atom)
0 Response to Changing the order of bars in a box plot
Post a Comment