/* The dataset has the formats below permanently assigned to certain variables. We do NOT need to rerun the DATA step used to assign the formats however we DO need to resubmit the PROC FORMAT so SAS will know the translations used */ PROC FORMAT; VALUE GDR 1 = "Male" 2 = "Female"; VALUE YN 1 = "Yes" 2 = "No"; VALUE EXER 1 = "High" 2 = "Moderate" 3 = "Low"; VALUE TREAT 1 = "Ran" 2 = "Sat"; VALUE BMI_TWO 1 = "< 25" 2 = "25+"; VALUE BMI_FOUR 1 = "< 18.5" 2 = "[18.5, 25)" 3 = "[25, 30)" 4 = "30+"; VALUE WT_TWO 1 = "87kg or Below" 2 = "More than 87kg"; VALUE WT_FOUR 1 = "55kg or Below " 2 = "(55kg, 60kg]" 3 = "(60kg, 67kg]" 4 = "(67kg, 79kg]" 5 = "More than 79kg"; RUN; /* Create differences between Pulse 2 and Pulse 1 for each observation */ DATA BIO.PULSE_STEP6; SET BIO.PULSE_STEP5; /* Calculate difference between pulse after vs. before */ DIFF_2v1 = PULSE2 - PULSE1; /* Label the new variable */ LABEL DIFF_2v1 = "DIFF (Pulse2 - Pulse1)"; RUN; /* Check Data */ PROC PRINT DATA = BIO.PULSE_STEP6 (OBS=10); /* Print only the variables of interest */ /* Allows to print in order you wish */ VAR TRT PULSE2 PULSE1 DIFF_2V1; RUN; PROC CONTENTS DATA = BIO.PULSE_STEP6 VARNUM; RUN; /* Side-by-side Boxplots of differences by treatment */ PROC SGPLOT DATA=BIO.PULSE_STEP6; VBOX DIFF_2V1 / CATEGORY = TRT; RUN;