I have the following code:
Code:
    preserve
    separate income, by(gender)
    collapse(median) income1 income2 income3 [weight=weight], by(year education)
    graph twoway line income1 income2 income3 year, by(education) yla(, ang(h)) ytitle("Income (in USD)") title("Income by Gender")
    restoreIn case it matters, I'd like to run the same code again with graphs by gender rather than education as well.
Also, how do I change the title so that it titles all 3 graphs generated once, rather than all 3 individually?
I hope this makes sense! Thank you in advance
0 Response to Labeling Graphs after "Separate" and "Collapse"
Post a Comment