/* 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"; RUN; /* PROC SGPLOT */ /* SCATTER statement will produce a scatterplot the GROUP option defines a categorical variable which varies the colors of points */ PROC SGPLOT DATA=BIO.PULSE_STEP2; SCATTER Y = WEIGHT X = HEIGHT / GROUP = GENDER; RUN; /* LOESS statement can also use the GROUP option, here we look at SMOOTH = 0.5 and the default smoothing */ /* Reasonable Smoothing */ PROC SGPLOT DATA=BIO.PULSE_STEP2; LOESS Y = WEIGHT X = HEIGHT / GROUP = GENDER SMOOTH = 0.5; RUN; PROC SGPLOT DATA=BIO.PULSE_STEP2; LOESS Y = WEIGHT X = HEIGHT / GROUP = GENDER; RUN;