Dear Stata
I would like to calculate a 95% confidence interval around a mean of Diff_SR within each of three groups (Diff1three 0,1,2)
Initially i did this using
mean Diff_SR, over (Diff1three)
--------------------------------------------------------------
Over | Mean Std. Err. [95% Conf. Interval]
-------------+------------------------------------------------
Diff_SR |
0 | .117838 .0842012 -.0499747 .2856507
1 | .0026495 .0722347 -.141314 .1466129
2 | .0601243 .056828 -.0531338 .1733823
I then wanted to graph this so I exported the data to tableau, and realised it calculated a different confidence interval.
I then went back and just looked at one group:
mean Diff_SR if Diff1three == 0
--------------------------------------------------------------
| Mean Std. Err. [95% Conf. Interval]
-------------+------------------------------------------------
Diff_SR | .117838 .0842012 -.0627555 .2984315
--------------------------------------------------------------
this is different from my first result, and gives the same Confidence interval as tableau. Does anyone know why there is a discrepancy when using "over" in the first example, and which is best to use?
Best Wishes
Joe
I would like to calculate a 95% confidence interval around a mean of Diff_SR within each of three groups (Diff1three 0,1,2)
Initially i did this using
mean Diff_SR, over (Diff1three)
--------------------------------------------------------------
Over | Mean Std. Err. [95% Conf. Interval]
-------------+------------------------------------------------
Diff_SR |
0 | .117838 .0842012 -.0499747 .2856507
1 | .0026495 .0722347 -.141314 .1466129
2 | .0601243 .056828 -.0531338 .1733823
I then wanted to graph this so I exported the data to tableau, and realised it calculated a different confidence interval.
I then went back and just looked at one group:
mean Diff_SR if Diff1three == 0
--------------------------------------------------------------
| Mean Std. Err. [95% Conf. Interval]
-------------+------------------------------------------------
Diff_SR | .117838 .0842012 -.0627555 .2984315
--------------------------------------------------------------
this is different from my first result, and gives the same Confidence interval as tableau. Does anyone know why there is a discrepancy when using "over" in the first example, and which is best to use?
Best Wishes
Joe
Comment