Russell
Posts:
1
Registered:
4/18/13
|
|
Confidence interval calculation (for multcompare)
Posted:
Apr 18, 2013 4:27 PM
|
|
In statistics, usually confidence intervals are calculated by the standard deviation over the sample size. However, in the multiple comparison, regardless of what the standard deviation is for each of the individual groups, the confidence intervals are always the same. I give an example code down below:
A = [1 5 3;1.1 500 4; 1.08, 10000, 3;0.95, 274, 6; 0.99, 2457, 5; 1.05, 54, 5; 1.02, 326, 4] [p6,anovatab6,stat6] = anova1(A); multcompare(stat6,'alpha',0.05);
The confidence intervals displayed in this multcompare figure should be as a function of the standard deviation in each of the groups, but it appears that they follow the standard deviation of the whole.
In other words the confidence intervals are not a reflection of these values for each of the groups
std(A)
but seem to be calculated from the entire population...
My question is, how and why are the confidence intervals in the multcompare function in matlab calculated?
Russell
|
|