Two volunteers each consumed a twelve ounce beer every fifteen minutes for
one hour. One hour after the fourth beer was consumed, each volunteer's
blood alcohol was measured with a different breathalyzer from the same
company. The numbers recorded in data frame Bac
are the sorted blood
alcohol content values reported with breathalyzers from company X
and
company Y
. Data are used in Example 9.15.
A data frame with 10 observations on the following 2 variables:
blood alcohol content measured in g/L
blood alcohol content measured in g/L
Ugarte, M. D., Militino, A. F., and Arnholt, A. T. (2008) Probability and Statistics with R. Chapman & Hall/CRC.
with(data = Bac, var.test(X, Y, alternative = "less"))#> #> F test to compare two variances #> #> data: X and Y #> F = 0.22222, num df = 9, denom df = 9, p-value = 0.01764 #> alternative hypothesis: true ratio of variances is less than 1 #> 95 percent confidence interval: #> 0.0000000 0.7064207 #> sample estimates: #> ratio of variances #> 0.2222222 #>