Learn R Programming

BSDA (version 1.01)

Cigar: Milligrams of tar in 25 cigarettes selected randomly from 4 different brands

Description

Data for Example 10.4

Usage

Cigar

Arguments

Format

A data frame with 100 observations on the following 6 variables.

brandA

a numeric vector

brandB

a numeric vector

brandC

a numeric vector

brandD

a numeric vector

tar

a numeric vector

brand

a numeric vector

Examples

Run this code
# NOT RUN {
str(Cigar)
attach(Cigar)
boxplot(tar~brand)
anova(lm(tar~as.factor(brand)))
detach(Cigar)
# }

Run the code above in your browser using DataLab