Hello,
I am attempting to graph the percentage of "yes" answers to four survey questions by male and female.
Here is my current code:
Which is producing this graph:

Instead of two separate graphs for female and male, I would like to graph the percentage of "yes" answers by gender next to each other on one graph.
I've attached data of the relevant variables for the first 100 observations.
Thank you.
I am attempting to graph the percentage of "yes" answers to four survey questions by male and female.
Here is my current code:
Code:
label define colleagues 1 "Y" 0 "N" encode Colleagues, gen(colleagues) label define famfriends 1 "Y" 0 "N" encode FamFriends, gen(famfriends) label define onmyown 1 "Y" 0 "N" encode Onmyown, gen(onmyown) label define dontplan 1 "Y" 0 "N" encode Dontplan, gen(dontplan) graph bar (mean) colleagues famfriends onmyown dontplan, by(gender, note("") iytitle noytitle title("I will Apply what I learned"))
Instead of two separate graphs for female and male, I would like to graph the percentage of "yes" answers by gender next to each other on one graph.
I've attached data of the relevant variables for the first 100 observations.
Thank you.
Comment