The dataset AutoPrice.txtcontains information on 84
Transcribed Image Text:
The dataset AutoPrice.txtcontains information on 84 vehicles for the 1985 model year.
Measures given include fuel type, body style, cylinder size, and retail price.
1. Make: Automobile Manufacturer
2. Fuel Type: Gas/Diesel
3. Body Style: Body style of a vehicle
4. Cylinders: Number of Cylinder
5. Price: Retail Price
A. Split Price by Body Style. How many different body styles does this dataset have?
List all the body styles here?
[Hint] You should use split() here to split the MPG by Type.
B. Use the split-price-data by Body Style from part A. Which body style has the
lowest mean Price? What is the mean Price of this body style?
C. Produce the Price boxplots grouped by Cylinders. Please state how the number of
cylinders affects Price.
D. Which vehicle (state its Make) has the highest Price regardless of body styles? Use
R to find it directly.
A. There are four different body styles in this dataset: -Sedan -Hatchback -Wagon -Convertible …View the full answer