Hello,
I need some help creating a graph in stata and could use expert guidance.
I have a binary variable (were you victimized): YES and NO
I am trying to list that binary variable by YEAR (this is the name of the variable in my dataset that ranges from 2005 to 2019) and have the bar chart display YES and NO side by side from 2005 to 2019.
I also need the Y axis to display the amount in thousands (up to 50k, broken down by 5k segments), and the top of each bar to list the exact amount that reported YES and the amount that reported NO.
I have tried using a bar chart but it breaks up YES and NO responses into different graphs. I need the YES and NO responses on one single graph over an amount of years.
Any suggestions?
Related Posts with bar graph with a binary variable over years
weighted random effects model with clustered SEHello: I want to estimated a weighted RE model with clustered standard errors. The xtreg does not a…
How to rank value in each specific date of each firmsHi all, I have data as follow (from 04Jan2012 to 31Dec2021) Code: * Example generated by -dataex-. …
Flipping models, coefficients, number of observations and number of clusters with esttabHello everyone, Firstly, I am a Stata 14 user. I have a question regarding esttab command and flipp…
Reformatting a monthly date variableI have a date variable in month-year format that looks like "2012m8". I got to that format using the…
Graph Scale and Text when using Graph Combine CommandI want to combine graphs, but when I do, the formatting is almost always problematic. If I have thr…
Subscribe to:
Post Comments (Atom)
0 Response to bar graph with a binary variable over years
Post a Comment