Hi everyone,

I intent to add my calculated confidence intervals to my graph:

This is the code for the initial graph.

Code:
graph twoway (connected systolicdifference bpweeks) if inrange(bpweeks,20,40), by (ETHNICITY)

I intended to add the confidence interval to the graph with this code but the parenthesis seems to be wrong . Could you help me identify where I went wrong.


Code:
graph twoway (connected systolicdifference bpweeks) if inrange(bpweeks,20,40), by (ETHNICITY)
(rcap upperboundsofci lowerboundsofci bpweeks if inrange(bpweeks,20,40),by (EHTNICITY))

Thank you very much