Dear Stata list:
My data look like this:
I.e. I have one variable y and its confidence intervals ylb and yub observed in different time periods for which I have a starting and end time.
I would like to create a figure with time on the x-axis and y on the yaxis, kind of like this:
There are two problems with this graph, though:
1) I don't want the vertical lines
2) It only goes to three on the x-axis, yet it should go to 4
The third problem: I would like to add a shaded area around it denoting the confidence interval.
Is there a simple solution to this?
Thanks for your consideration
Joe
My data look like this:
Code:
clear input id y start end ylb yub 1 2.0 0 1 1.9 2.1 2 2.3 1 2 2.2 2.4 3 2.1 2 3 2.0 2.2 4 2.4 3 4 2.3 2.5 end
I would like to create a figure with time on the x-axis and y on the yaxis, kind of like this:
Code:
twoway (line y start, connect(J))
There are two problems with this graph, though:
1) I don't want the vertical lines
2) It only goes to three on the x-axis, yet it should go to 4
The third problem: I would like to add a shaded area around it denoting the confidence interval.
Is there a simple solution to this?
Thanks for your consideration
Joe
Comment