Hello,
I have a quick question I guess: I want to make a plot for mean health related quality of life (HRQoL) for age (each year) shown in two different plots for males and females. I use a data set with all these variables included and am interested in the HRQoL over the years:
The problem is: this gives exactly the same plot for males and females.
What am I doing wrong? How can I get the correct plot where it represents the mean HRQoL over the years for males and females correctly?
I have a quick question I guess: I want to make a plot for mean health related quality of life (HRQoL) for age (each year) shown in two different plots for males and females. I use a data set with all these variables included and am interested in the HRQoL over the years:
Code:
tab HRQoL age gender egen mhrqol = mean(HRQoL), by(age) twoway (line mhrqol age, sort), by(gender)
What am I doing wrong? How can I get the correct plot where it represents the mean HRQoL over the years for males and females correctly?
Comment