/* View the first 5 observations of the STEP1 data */ PROC PRINT DATA=BIO.PULSE_STEP1 (OBS=5); RUN; /* Show information about STEP1 data - Review variable names */ PROC CONTENTS DATA=BIO.PULSE_STEP1 VARNUM; RUN; /* Note the raw data for our categorical variables are coded as numbers */ /* We have not yet created translations for the variables in the STEP1 Data */ /* We will cover how to handle that scenario in the translation tutorials */ /* Frequency Distribution for one categorical variable */ PROC FREQ DATA=BIO.PULSE_STEP1; TABLES GENDER; RUN; /* Frequency Distributions for many categorical variable simultaneously */ /* The PLOTS=FREQPLOT option adds a bar chart to the results */ PROC FREQ DATA=BIO.PULSE_STEP1; TABLES GENDER SMOKES ALCOHOL EXERCISE TRT / PLOTS=FREQPLOT; RUN; /* Bar Charts using SGPLOT */ PROC SGPLOT DATA=BIO.PULSE_STEP1; VBAR GENDER; /* Vertical Bars */ RUN; PROC SGPLOT DATA=BIO.PULSE_STEP1; HBAR GENDER; /* Horizontal Bars */ RUN; /* In this course, you must have the coded values translated in the final output. */ /* We will cover the FREQ procedure with translations in our tutorial on that topic. */ /* For our 1st assignment, the data of interest is NOT coded, the raw data is text */ /* Notice the difference when you complete the assignment */