Dear beloved all,
Recently I am working on how to draw a line graph like this:

However, my dependent variable is a series of incidence rates calculated from many waves and I am trying to depict the trajectory of those incidence rates. Hence, I don't want Stata to calculate/predict confident intervals for me, I already had them when I produced my incidence rate before. I just want to add my upper and lower confident intervals by hand. Is it possible?
Here is my data:

I want three lines in terms of gender (1 for male, 0 for female, 2 for total), the x should be waves (there are 6) and y should be incidence rates. Here is what I have done so far:
twoway ///
(line incidence wave if gender==1) ///
(line incidence wave if gender==2) ///
(line incidence wave if gender==0) ///
but I can't go any further as I have no clue if Stata has the function to achieve my goal.
Anyway, any suggestions would be extremely important for me and thank you in advance for any help
Ted.
Recently I am working on how to draw a line graph like this:
However, my dependent variable is a series of incidence rates calculated from many waves and I am trying to depict the trajectory of those incidence rates. Hence, I don't want Stata to calculate/predict confident intervals for me, I already had them when I produced my incidence rate before. I just want to add my upper and lower confident intervals by hand. Is it possible?
Here is my data:
I want three lines in terms of gender (1 for male, 0 for female, 2 for total), the x should be waves (there are 6) and y should be incidence rates. Here is what I have done so far:
twoway ///
(line incidence wave if gender==1) ///
(line incidence wave if gender==2) ///
(line incidence wave if gender==0) ///
but I can't go any further as I have no clue if Stata has the function to achieve my goal.
Anyway, any suggestions would be extremely important for me and thank you in advance for any help

Ted.
Comment