tutor8 - current interest rate. b. Do part a again using Do...

Info iconThis preview shows pages 1–3. 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 8 1. The class test results are stored in an external file score.txt. The variables are ID, score1, score2 and score 3. a. Create a SAS data set called Test_Scores from these data. b. Create a list of all the IDs of students who achieved a score of 95 or higher on any of the tests. Create a new SAS data set and use PROC PRINT to list these students. c. Do part b again with a DATA _NULL_ step
Background image of page 1

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

View Full DocumentRight Arrow Icon
2. John has $100 and he wants to put it into bank. The current interest rate is 3.75%. a. Create a data set compound to show how the amount of $100 changes during 3 years under the
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: current interest rate. b. Do part a again using Do loop 3. Using an iterative DO loop to make a table of squares and square roots for n from 1 to 10. For example, if n=4, we calculate its square as 16 and the square root is 2. 4. Using an iterative DO loop to graph an equation Y = 2x 3-5X 2 +15X-8, X ∈ [-10, 10] 5. A listing of data set Wide, containing the variables Subj, X1–X5, and Y1–Y5, is shown here: Using a DATA step, create a temporary SAS data set (Long) using data set Wide as input. This data set should contain Subj, Time, X, and Y, with five observations per subject. The first 10 observations from data set Long should look like this:...
View Full Document

This document was uploaded on 05/04/2011.

Page1 / 3

tutor8 - current interest rate. b. Do part a again using Do...

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

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