{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

CH11 exercise

# CH11 exercise - STAT1303A Data Management 11 Data...

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

STAT1303A Data Management 11. Data Preparation Exercise 11 1. Run the following program to create a SAS data set called COLORS: data colors; input Color : \$1. @@; datalines; R R B G Y Y . . B G R B G Y P O O V V B ; Use a format to group the colors as follows: R, B, G = Group 1 Y, O = Group 2 All others = Group 3 Missing = Not Given Use PROC FREQ to list the frequencies of the color groups. 2. You are given a SAS data set (BLOODPRESSURE) with variables SBP and DBP (systolic blood pressure and diastolic blood pressure). You want to see frequencies for SBP and DBP grouped as follows: SBP pressures below 140 are to be called Normal and pressures of 140 and above are to be called High SBP . For DBP, pressures below 90 are to be called Normal and pressures of 90 and above are to be called High DBP . Create an appropriate format and use PROC FREQ to produce these frequencies. Do not use a DATA step. Use the appropriate options to omit the cumulative frequencies and percentages from the PROC FREQ output. 3. Given the SAS data set GRADES, produce frequencies of Grade (a numeric variable) grouped as follows: Less than 65 = F 65 to less than 75 = C 75 to less than 85 = B 85 to 100 = A Create a format and use PROC FREQ to list these frequencies. Do not use a DATA

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 / 3

CH11 exercise - STAT1303A Data Management 11 Data...

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

View Full Document
Ask a homework question - tutors are online