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
Droping "NA"sHi Stata users. I have 26 variables that contain some observations as NA. Is there a way ( olther t…
Using marginsplot, category labels and plots overlap.I use Stata 15.1 SE on Windows 10. I am calculating predictive margins following an ologit in the sv…
Presenting Information Criteria in Latex form from StataHi guys, I would like to display my information criteria in choosing the lag length for the estimat…
Threshold regressionI need your help. My model is Yit=a1(1-I*)(D-D*)+a2xI*(D-D*)+bxXit+eit while I*=1 if D>D* and I*=…
Matching of Cases to reduce sample size of logit regressionHi everyone, I'm working on a study to investigate the impact of firm performance on probability of…
Subscribe to:
Post Comments (Atom)
0 Response to bar graph with a binary variable over years
Post a Comment