{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

tutor9

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

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

The University of Hong Kong Department of statistics and actuarial science STAT1303 Data Management Tutorial 9 1. You have the following seven values for temperatures for each day of the week, starting with Monday: 70, 72, 74, 76, 77, 78, and 85. Create a temporary SAS data set (Temperatures) with a variable (Day) equal to Mon , Tue , Wed , Thu , Fri , Sat , and Sun and a variable called Temp equal to the listed temperature values. Use a DO loop to create the Day variable. 2. You have daily temperatures for each hour of the day for two cities (Dallas and Houston). The 48 temperature values are strung out in several lines like this: 80 81 82 83 84 84 87 88 89 89 91 93 93 95 96 97 99 95 92 90 88 86 84 80 78 76 77 78 80 81 82 82 86 88 90 92 92 93 96 94 92 90 88 84 82 78 76 74 The first 24 values represent temperatures from Hour 1 to Hour 24 for Dallas and the next 24 values represent temperatures for Hour 1 to Hour 24 for Houston . Using the appropriate DO loops, create a data set (Temperature) with 48 observations,

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

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

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

View Full Document
Ask a homework question - tutors are online