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

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

View Full Document Right Arrow Icon
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;
Background image of page 1

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

View Full DocumentRight Arrow Icon
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? 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
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/21/2011 for the course PUBH 6420 taught by Professor Greggrandis during the Fall '11 term at University of Florida.

Page1 / 8

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

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