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
Undesired behavior (or bug): confirm new variableConsider the following examples: Code: clear confirm new variable byte confirm new variable byte i…
Is DiD possible for examining effect of a continuous treatment on a continuous outcome among single group dependent sample?Hi Statalist, I'm new to the forum and a novice Stata user. I'm studying the effect of a continuou…
Asymmetric predictors in dynamic panel models?Hi all, In a longitudinal analysis, I suspect that the impact of an increase in a predictor variabl…
Problem graphing by several variablesHello ! My name is Hans Huber and I was wondering if someone could help me making a certain type of…
how to calculate the loop for variables?I need to calculate the second row variable minus the first row variable, the fourth row variable mi…
Subscribe to:
Post Comments (Atom)
0 Response to bar graph with a binary variable over years
Post a Comment