I need to calculate the within and between run variances from some data as part of developing a new analytical chemistry method. I also need confidence intervals from this data using the R language
I assume I need to use anova or something ?
My data is like
> variance
Run Rep Value
1 1 1 9.85
2 1 2 9.95
3 1 3 10.00
4 2 1 9.90
5 2 2 8.80
6 2 3 9.50
7 3 1 11.20
8 3 2 11.10
9 3 3 9.80
10 4 1 9.70
11 4 2 10.10
12 4 3 10.00
I’ve been looking at a similar problem. I’ve found reference to caluclating confidence intervals by Burdick and Graybill (Burdick, R. and Graybill, F. 1992, Confidence Intervals on variance components, CRC Press)
Using some code I’ve been trying I get these values
Here the lower confidence interval for between run CV is less than zero, so reported as NaN.
I’d love to have a better way to do this. If I get time I might try to create a function to do this.
Paul.
—
Edit: I did eventually write a function, here it is (caveat emptor)