{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

exam1_practice

# exam1_practice - PH6420 Practice Exam 1 Give the SAS...

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

PH6420 Practice Exam 1. Give the SAS procedure you would use to perform the following displays or analyses. a. Display the cross-tabulation between 2 variables (e.g. race by gender) b. Obtain the percentiles of a variable c. List values of selected variables for each observation d. Obtaining the correlation between variables e. Obtaining the regression equation between 2 variables 2. (8 points) Complete the DATA, INFILE and INPUT statements to read in the data that is under the DATALINES statement. There are 4 variables: patient ID, gender, age, and history of diabetes. Patient ID and gender are character variables; age and history of diabetes are numeric. Name the variables pid, gender, age, and diabHx. DATA INFILE INPUT DATALINES; A001,F,48,1 A002,M,54,2 ;

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

View Full Document
3. Suppose a person’s weight is recorded in positions 18 through 20 on an external file but you instruct SAS to read in the variable weight from positions 17-19. What is the most likely result when the program is run? a. SAS will give you an error message stating variable weight is not found b. SAS will read in the weight correctly since weight is already a SAS variable c. SAS will assign the wrong value to weight and you may or may not get a warning message d. SAS will assign the wrong value to weight and you will get a warning message
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern