EXAMPLE 5 Constructing a crosstabulation
Table 6 contains information about the size (compact, midsize, or large) and the recommended gasoline (regular or premium) for a sample of ten 2014 automobiles.
Car | Car size | Recommended gasoline |
---|---|---|
BMW 328i | Compact | Premium |
Chevrolet Camaro | Compact | Regular |
Honda Accord | Compact | Regular |
Cadillac CTS | Midsize | Premium |
Nissan Sentra | Midsize | Regular |
Subaru Legacy AWD | Midsize | Premium |
Toyota Camry | Midsize | Regular |
Ford Taurus | Large | Regular |
Hyundai Genesis | Large | Premium |
Rolls-Royce | Large | Premium |
Solution
carsizegas
Recommended gasoline | |||
---|---|---|---|
Car size | Regular | Premium | Total |
Compact | 2 | 1 | 3 |
Midsize | 2 | 2 | 4 |
Large | 1 | 2 | 3 |
Total | 5 | 5 | 10 |
NOW YOU CAN DO
Exercises 21, 37, 41, and 45.