lab6 - Statistics 440 Lab Exercises 6 Before you begin...

This preview shows pages 1–2. Sign up to view the full content.

Statistics 440: Lab Exercises 6 1 Before you begin: Login to Illinois Compass and download sfosch.dat (same file used in Lab 3) from the Data\Lab 6 folder and save it in D: \ netid (or folder of your choice). For these exercises, use SAS data sets stored in a permanent SAS data library. Submit the LIBNAME statement to assign the libref st to D: \ netid ’ (or folder of your choice). libname st 'D:\ netid '; In the formatted input exercise (Lab 3, Exercise 2), you wrote a program and stored it in a file. (The program creates a SAS data set named st.sanfran , prints the data set, and shows the contents of the descriptor portion of the data set.). data st.sanfran; infile ‘D:\ netid \sfosch.dat’; input @1 FlightID \$7. @8 RouteID \$7. @18 Destination \$3. @21 Model \$20. @41 Date date9. @65 TotPassCap 3.; run; proc print data=st.sanfran; format Date mmddyy10.; run; proc contents data=st.sanfran; run; 1. Creating and Applying User-defined Formats a. Create a user-defined format for Model in the library st that assigns labels as shown below. Value(s) of Model Label JetCruise LF5100 JetCruise LF5200 JetCruise LF8000 JetCruise LF8100 Large Jet JetCruise MF2100 JetCruise MF4000 Medium Jet JetCruise SF1000 Small Jet

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 4

lab6 - Statistics 440 Lab Exercises 6 Before you begin...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online