Hey everyone,
I've just begun with Stata, and I have absolutely no clue how to solve this.
I have a drawing for a graph that I need to plot (see attachment). In the graph I need to depict errors in probands' estimations compared to the real world value for 8 different questions.

My data structure is the following:
The probands were asked for their estimations on 8 different topics -> I have 8 variables that show percentage values for each proband (>100 observations)
Probands differ between each other by treatment (two treatments) and region (two regions).
For each of the 8 topics I also have one real world value (in percent).
The graph is supposed to differentiate between the two regions (Region 1 on the left, region 2 on the right).
For each of the 8 variables I need one dotted line with
- real world value (as the baseline)
- belief percentage for treatment==0: mean with confidence interval
- belief percentage for treatment==1: mean with confidence interval
all on the same line.
So far, I have calculated:
- means
- standard errors
- lower and upper confidence interval level
for all 8 variables.
I have also generated new variables:
(same for the other statistics)
in order to differentiate between regions in the graph, not sure if neccessary.
Based on the drawing and the data structure, does anyone on the top of their head has an idea how to plot this graph?
If anything is unclear, I'm happy to provide more detailed information.
Thank you!
Anna
I've just begun with Stata, and I have absolutely no clue how to solve this.
I have a drawing for a graph that I need to plot (see attachment). In the graph I need to depict errors in probands' estimations compared to the real world value for 8 different questions.
My data structure is the following:
The probands were asked for their estimations on 8 different topics -> I have 8 variables that show percentage values for each proband (>100 observations)
Probands differ between each other by treatment (two treatments) and region (two regions).
For each of the 8 topics I also have one real world value (in percent).
The graph is supposed to differentiate between the two regions (Region 1 on the left, region 2 on the right).
For each of the 8 variables I need one dotted line with
- real world value (as the baseline)
- belief percentage for treatment==0: mean with confidence interval
- belief percentage for treatment==1: mean with confidence interval
all on the same line.
So far, I have calculated:
- means
- standard errors
- lower and upper confidence interval level
for all 8 variables.
I have also generated new variables:
Code:
foreach v of varlist v1 v2 v3 v4 v5 v6 v7 v8 { gen meanS_`v' = mean_`v' if north==0 gen meanN_`v' = mean_`v' if north==1 }
in order to differentiate between regions in the graph, not sure if neccessary.
Based on the drawing and the data structure, does anyone on the top of their head has an idea how to plot this graph?
If anything is unclear, I'm happy to provide more detailed information.
Thank you!
Anna
Comment