I am a beginner Stata user. For a research project, whose information I must unfortunately keep confidential, I am trying to adjust a bar graph so that the order of the bars are "Increase", "Same", "Decrease" instead of the default alphabetical "Decrease", "Increase", "Same".
To create this graph, I load in my cleaned dataset and run:
graph bar, by(byvar) over(groupvar) .
In an attempt to try to re-order the bars, I ran:
gen order=1 if groupvar=="Increase"
replace order=2 if groupvar=="Same"
replace order=3 if groupvar=="Decrease"
graph bar, by(byvar) over(groupvar, sort(order)) .
I get the error message "variable mean not found".
How should I fix this?
(Apologies if this is too difficult to answer without being able to see the graph and data.)
Related Posts with How can I change the order of the bars in this bar graph?
Statistical Non-Significance of results and their interpretion by using confidence intervals and standard errorsDear Stata Members I have done a Difference in Difference model and I got the following output Cod…
Goodness of fit -xtreg, re vce(cluster var)- and -xtlogit-Hello everyone, I am running a random effects panel regression with -xtreg, re- and clustered stand…
frames questionRelational databases can hold data more efficiently than flat files in the sense that when you merge…
SSC RIF updateDear all Thanks to Prof Baum, an update for RIF is up! This update comes with 1 addition: -bsrifhdre…
I can't simulate a bootstrap program with multiple resultsI am trying to calculate bootstrap standard errors for many regressions. I am applying Two-Sample In…
Subscribe to:
Post Comments (Atom)
0 Response to How can I change the order of the bars in this bar graph?
Post a Comment