Dear all,
my data looks the following:
where
- yu= upper confidence level
- yl = lower confidence level
for the respective mean
I need to plot this graph:

My code so far is:
Usually, I'd add the confidence intervals with rcap() but that only works vertically as far as I know.
Does anyone have an idea? Am I entirely on the wrong path?
Best
Anna
my data looks the following:
observation | treatment | north | mean_v1 | yu_v1 | yl_v1 | mean_v2 | yu_v2 | yl_v2 |
1 | 0 | 0 | ||||||
2 | 0 | 1 | ||||||
3 | 1 | 0 | ||||||
4 | 1 | 1 |
- yu= upper confidence level
- yl = lower confidence level
for the respective mean
I need to plot this graph:
My code so far is:
Code:
gen y_v2 = 1 gen y_v1 = 2 //// so that I can adjust shape and color etc separately by treatment later on: separate mean_v1, by(treatment) separate mean_v2, by(treatment) separate yu_v1, by(treatment) separate yu_v2, by(treatment) separate yl_v1, by(treatment) separate yl_v2, by(treatment) twoway ((scatter y_v1 mean_v10) (scatter y_v1 mean_v11) (scatter y_v2 mean_v20) (scatter y_v2 mean_v21)), by(north)
Does anyone have an idea? Am I entirely on the wrong path?
Best
Anna
Comment