Вы находитесь на странице: 1из 1

EXERCISES CHAPTER 4

1. Use the raw data from the file CARS.csv


The names of variables are here:
Make
Model
Type
Origin
DriveTrain
MSRP
Invoice
EngineSize
Cylinders
Horsepower
MPG_City
MPG_Highway
Weight
Wheelbase
Length
Do the following:

List Make, Model,MSRP, MPG_City variables using PROC PRINT. Title the
list as List of Available Cars and Label MSRP as Suggested Retail Price and
MPG_City as Miles per Gallon (City)
Choose only Make = Chevrolet and list the data. Add a subtitle as Chevrolet
Only. Format the MSRP with two decimals.
In the whole data set, filter out cars costing $75,000 or less, sort all values by
MSRP, then Make and output this sorted data into MostExpensive.
Sort the whole data by MPG_City descending. Print the same variables of the
first item and title the list Economy Cars.
Find out what Make is the most economical and what Make is most expensive.
Find out what Type of cars are the most economical and what Type are most
expensive.
Find out cars from which Origin are the most economical and cars from which
Origin are the most expensive.
Build the frequency tables for Cylinders*Origin. Comment on the result.

Вам также может понравиться