FILENAME goptions URL "http://192.38.117.59/~linearpredictors/datafiles/goptions.sas"; %include goptions; FILENAME url URL "http://192.38.117.59/~linearpredictors/datafiles/readVitaminD.sas"; %include url; /* Women from Ireland */ DATA irishwomen; SET vitamind (WHERE = (country=4 and category=2)); id=_N_; RUN; PROC GLM DATA=irishwomen; MODEL vitd=bmi; OUTPUT OUT=modelcontrol R=residual; RUN; %begin_multilayout(1,2); PROC GPLOT DATA = modelcontrol GOUT=plots; PLOT residual*bmi / VREF=0 LV=33 NOLEGEND HAXIS=AXIS1 VAXIS=AXIS2; AXIS1 MINOR = NONE OFFSET = (5 pct) LABEL = ('BMI'); AXIS2 MINOR = NONE LABEL = (A=90 R=0 'Residual'); SYMBOL1 VALUE = CIRCLE I=NONE COLOR = BLACK; RUN; PROC UNIVARIATE DATA=modelcontrol GOUT=plots; VAR residual; qqplot / normal(mu=EST sigma=EST l=33); RUN; QUIT; %end_multilayout(1,2);