tutor6 - The University of Hong Kong Department of...

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

View Full Document Right Arrow Icon
The University of Hong Kong Department of statistics and actuarial science STAT1303 Data Management Tutorial 6 Restricting observations and variables & Combining data sets 1. Using the SAS data set Blood, create a temporary SAS data set which contains the 5-th to the 200-th observations. 2. Using the SAS data set Blood, create two temporary SAS data sets by selecting all subjects with cholesterol levels (Chol) below 100. Place the male subjects in Lowmale and the female subjects in Lowfemale. Do this using a single DATA step. Note Values for Gender are Male and Female. Careful, some of the cholesterol values are missing. Print the resulting data sets. 3. Print out the observations in the two data sets Inventory and NewProducts. Next, create a new temporary SAS data set (Updated) containing all the observations in Inventory followed by all the observations in NewProducts. Sort the resulting data set and print out the observations. 4.
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 05/04/2011.

Page1 / 2

tutor6 - The University of Hong Kong Department of...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online