I hope someone can help me with my codes as I am trying to show Gender with different household income (both on x-axis) experiencing various levels of Stress-Scale (y-axis). I tried to do it once and it worked but when I did it again, it failed. Something went wrong with my codes. Please see my excel data with the three variables and graph. In addition, I also want to label 0 as "Male" and 1 as "Female" on the x-axis and on the y-axis, start the Scale on 1 rather than 2.5 and end on 7 rather than 4.5.
Please help me. I am so confused and feel hopeless as I have been going around in circles. thank you so much.
Array Array
collapse (mean) Stress_Scale , by(Gender)
format Stress_Scale %9.1f
separate Stress_Scale, by(HHIncome) veryshortlabel
twoway connected Stress_Scale0 Stress_Scale1 Stress_Scale2 Stress_Scale3 Gender, mlab(Stress_Scale Stress_Scale Stress_Scale Stress_Scale) mlabpos(12 12) xlab(0/1) plotregion(margin(large))
Related Posts with Need help with graphs
including time dummy variables make all other variables insignificantDear Statalist, I am working on bilateral remittances data over the period 2011-2017 for a set of d…
oaxaca_riffDear members, I am trying to estimate productivity/yield gap between men and women using oaxaca_rif.…
Panel data with repeated time values within panel r(451); due to multiple directorshipsDear all, I am writing my Master's thesis in Economics, and I am working on a data set on board of …
Mata run-time error r(3001)Hello, I use Stata/IC 15.1. I can run regressions with it but when I try to get summary statistics …
The difference between Run and Do icon in do-file toolbar?What's the difference? I use Mac. …
Subscribe to:
Post Comments (Atom)
0 Response to Need help with graphs
Post a Comment