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
Estimation using only one out of many categorical variables without dropping the restDear members, My dataset contains 4 countries and I'd like to run a regression using only one of th…
Choice models -cmxtmixlogit- command for including random parameter for one of the alternatives (the base/status quo alternative)I am having trouble with the new stata 16 cmxtmixlogit command. I am trying to estimate a choice mo…
Moderation effectHi Everyone, I am running a panel model using population averaged model. I have different hypothese…
define column width in xl() "open" depending on values (reals & strings)?Hi! How may I define the column width for each column depending on the maximum length of the charac…
Margin effects with multinomial logistic regressionHi dear Statalisters, I am running a mlogit model with interaction effects between categorical vari…
Subscribe to:
Post Comments (Atom)
0 Response to Changing the order of bars in a box plot
Post a Comment