Question: ( 3 4 points total ) Refer to the file called diamond.csv and complete the following tasks: a . ( 8 points ) Use PROC

(34 points total) Refer to the file called diamond.csv and complete the following tasks:
a.(8 points) Use PROC IMPORT to import the file into SAS so that it can be used as a
SAS data set.
b.(8 points) Using the data set produced in (a), print just the carat, color, and price
values for only diamonds considered to be one-half carat (actual carat weight between
0.48 and 0.52 carat inclusive) and having a color rating of " D ".
c.(10 points) Using a new data step, create a new data set that (1) consists of diamonds
that only have the "T" color and (2) creates a new variable Size that classifies
diamonds less than 0.55 carats as "Little" and diamonds 0.55 carats and larger as
"Big". Print the first 25 observations from the resulting data set.
d.(8 points) Sort the data set in (c) by Size and Clarity (listed in that order) and print the
data set for only the variables Clarity and Price using a BY statement applied to Size.
( 3 4 points total ) Refer to the file called

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!