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
stata code: participating more than onceHi everyone, Which stata code can I use if I want to keep those who have participated in one or mor…
Changing the instrument changes the Wald test of exogeniety resultsI am running an -ivprobit- model with one endogenous regressor and one instrument. I am trying out t…
Exploratory Factor Analysis for Overdispersed Count DataHello, I'm searching for a Stata-Package or solution that will allow me to factor analyze longitudi…
FE and Events History AnalysisI'm using a dataset ranging from 1960 to 2019, some of the years have missing variables. I want to r…
Mixed effects zero-inflated PoissonDear Colleagues, I was wondering if anyone knew whether there was a command equivalent to "menbreg" …
Subscribe to:
Post Comments (Atom)
0 Response to bar graph with a binary variable over years
Post a Comment