exam1_practiceS

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

This is a preview. 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) PROC FREQ b. Obtain the percentiles of a variable PROC UNIVARIATE c. List values of selected variables for each observation PROC PRINT d. Obtaining the correlation between variables PROC CORR e. Obtaining the regression equation between 2 variables PROC REG 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 diab ; INFILE DATALINES DLM=’, DSD ; INPUT pid \$ gender \$ age diabHx;
DATALINES; A001,F,48,1 A002,M,54,2 ; 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?
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