TAKE-HOME MIDTERM EXAM
Exercises for Handout 10 material: Explain the reason for selecting the correct answer, as well as the reason for NOT selecting EACH of the wrong answers.
And the following
Exercise 1. For the data in file ‘ExamEx1.xls’, produce a report identical to the one in file ‘Report_Ex1.html’.
*****************************************************************************
Exercises for Handout 11 material: Explain the reason for selecting the correct answer, as well as the reason for NOT selecting EACH of the wrong answers.
And the following
Exercise 2. Information on presence or absence (yes or no) of two characteristics A and B is available for several individuals. The data are stored in file ‘ExamEx2.dat’. Compute the number of individuals who have
(a) characteristic A
(b) characteristic B
(c) only characteristic A
(d) only characteristic B
(e) both characteristics
(f) neither characteristic
(g) either characteristic
Hint: Construct a two-way table of A by B.
*****************************************************************************
Exercises for Handout 12 material: Explain the reason for selecting the correct answer, as well as the reason for NOT selecting EACH of the wrong answers.
*****************************************************************************
Exercises for Handout 13 material: Explain the reason for selecting the correct answer, as well as the reason for NOT selecting EACH of the wrong answers.
*****************************************************************************
Exercises for Handout 14 material: Explain the reason for selecting the correct answer, as well as the reason for NOT selecting EACH of the wrong answers.
and the following
Exercise 3. Patients underwent knee replacement surgeries for one or both knees. The data record patient id, the replaced knee number (1 or 2), and satisfaction scores pre-operatively, one day, one week, and one month after the surgery. The data are
|
(a) Use the ARRAY statement to create a data set containing satisfaction scores for knee 1. The data set should look like this
id visit score
01 1 0
01 2 5
01 3 7
01 4 10
02 1 0
02 2 10
02 3 15
02 4 15
03 1 0
03 2 3
03 3 3
03 4 3
04 1 0
04 2 4
04 3 10
04 4 10
(b) Use the ARRAY statement to create a data set containing satisfaction scores for knee 2. The data set should look like this
id visit score
02 1 3
02 2 5
02 3 8
02 4 10
03 1 0
03 2 6
03 3 9
03 4 9
(c) Use the MERGE statement to create the merged file that looks like this
score_ score_
id visit knee1 knee2
01 pre_op 0 .
01 day 1 5 .
01 week 1 7 .
01 month 1 10 .
02 pre_op 0 3
02 day 1 10 5
02 week 1 15 8
02 month 1 15 10
03 pre_op 0 0
03 day 1 3 6
03 week 1 3 9
03 month 1 3 9
04 pre_op 0 .
04 day 1 4 .
04 week 1 10 .
04 month 1 10 .
(d) Turn in your SAS code as well as the output it produces.
*****************************************************************************
Exercises for Handout 15 material: Explain the reason for selecting the correct answer, as well as the reason for NOT selecting EACH of the wrong answers.
*****************************************************************************
Exercises for Handout 16 material: Explain the reason for selecting the correct answer, as well as the reason for NOT selecting EACH of the wrong answers.
*****************************************************************************
Also, do
DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma
Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t
Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th
1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of
1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of