First, I perform the Tukey’s Test ,also called Tukey’s Honestly Significant Difference Test( abbreviated as HSD).
We already knew that the HSD test focuses on the experiment wise error rate, a, and assumes that the number of replicates at each level are equal. To use the function, an aov object is required as the first argument.
> #eg 3-1
> X=c(575,542,530,539,570,
+ 565,593,590,579,610,
+ 600,651,610,637,629,
+ 725,700,715,685,710)
> A=factor(rep(1:4,each=5))
> #construct a data.frame
> shuju=data.frame(X,A)
> aov.shuju=aov(X~A,data=shuju)
> shuju.tukey=TukeyHSD(aov.shuju,ordered=T)
> shuju.tukey
Tukey multiple comparisons of means
95% family-wise confidence level
factor levels have been ordered
We can see immediately that all pairs of means are significantly different. Therefore, each power setting results in a mean etch rate that differs from the mean etch rate at any other power setting.
We also can plot the confidence intervals, which is more explicitly.
> plot(shuju.tukey)
Conclusions are the same as before.
Now we perform the LSD test to our above example. The LSD test essentially involves performing a series of pair wise t test. It is important to note that with LSD, we have to specify the individual error rate, not the experimentwise or family error rate.
Assume here that we wish to find the LSD between level 1 and 3.
Because , so this implies that level 1 and level 3 ‘s means are significantly different. You can follow the exactly the same routine to compare the rest pair of means.
First, I perform the Tukey’s Test ,also called Tukey’s Honestly Significant Difference Test( abbreviated as HSD).
We already knew that the HSD test focuses on the experiment wise error rate, a, and assumes that the number of replicates at each level are equal. To use the function, an aov object is required as the first argument.
> #eg 3-1
> X=c(575,542,530,539,570,
+ 565,593,590,579,610,
+ 600,651,610,637,629,
+ 725,700,715,685,710)
> A=factor(rep(1:4,each=5))
> #construct a data.frame
> shuju=data.frame(X,A)
> aov.shuju=aov(X~A,data=shuju)
> shuju.tukey=TukeyHSD(aov.shuju,ordered=T)
> shuju.tukey
Tukey multiple comparisons of means
95% family-wise confidence level
factor levels have been ordered
We can see immediately that all pairs of means are significantly different. Therefore, each power setting results in a mean etch rate that differs from the mean etch rate at any other power setting.
We also can plot the confidence intervals, which is more explicitly.
> plot(shuju.tukey)
Conclusions are the same as before.
Now we perform the LSD test to our above example. The LSD test essentially involves performing a series of pair wise t test. It is important to note that with LSD, we have to specify the individual error rate, not the experimentwise or family error rate.
Assume here that we wish to find the LSD between level 1 and 3.
Because , so this implies that level 1 and level 3 ‘s means are significantly different. You can follow the exactly the same routine to compare the rest pair of means.