Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Consider Data Set 3. Suppose the data has been stored in a data set names WORK.t

ID: 3357115 • Letter: C

Question

Consider Data Set 3. Suppose the data has been stored in a data set names WORK.travel

(a) Write PROC PRINT commands to print only the data with a distance over 100 miles

(b) Write IF-THEN-ELSE commands to create a variable named TripType with levels Short, Medium, Long for trips less than 50 miles, trips between 51 and 120 miles, and trips greater than 120 miles, respectively

(c) Write commands to compute means for each of the categories of TripType

Data set 3:

data travel;

input start $10. @12 destination $11. @22 distance;

datalines;

/*--5----10---15---20---25---30---35*/

Columbia Charleston 112

Abbeville Aiken 69

Cheraw Beaufort 188

Greenville Beaufort 220

Columbia Lexington 13

Lexington Orangeburg 44

Camden Aiken 88

;

Explanation / Answer

(b)Ans:

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote