Data for Example 10.4

Cigar

Format

A data frame/tibble with 100 observations on two variables

tar

amount of tar (measured in milligrams)

brand

a factor indicating cigarette brand with levels brandA, brandB, brandC, and brandD

References

Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.

Examples


boxplot(tar ~ brand, data = Cigar, col = "cyan", ylab = "mg tar")

anova(lm(tar ~ brand, data = Cigar))
#> Analysis of Variance Table
#> 
#> Response: tar
#>           Df Sum Sq  Mean Sq F value  Pr(>F)  
#> brand      3 0.0926 0.030867  3.7193 0.01403 *
#> Residuals 96 0.7967 0.008299                  
#> ---
#> Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1