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
Running sum by a group based on another group and time.Hi, This is the first time I am posting on StatList. I have a time series data, in which I have va…
matching variables in the varlist with parameters is needed in 'ln'?I want to estimate equation below with 'ln' command and the program. But it returns error message 19…
Marginal effect manually for IV-TobitDear Statalist I have gone through Tobit model in very a detailed way but reached a dead-end in try…
Comparing string variable namesI have a variable named S_Kx, S_Jx S_Yx, S_Sx I want to nix all variables that dont' have the same …
Taking a log of Ratio VariableHi, I am conducting a panel data analysis. My dependent variable is a ratio which defines the busin…
Subscribe to:
Post Comments (Atom)
0 Response to bar graph with a binary variable over years
Post a Comment