I have this dataset:
data flu;
input FluShotStatus age HealthAwareIndex gender;
datalines;
0 59 52 0
0 61 55 1
1 82 51 0
0 51 70 0
0 53 70 0
0 62 49 1
1 51 69 1
0 70 54 1
0 71 65 1
0 55 58 1
1 58 48 0
0 53 58 1
0 72 65 0
1 56 68 0
0 56 83 0
0 81 68 0
1 62 44 0
;
run;
I am trying to produce multiple, different plots from this dataset.
First, I want to produce a QQ Plot, using ODS, for the variable Health Awareness Index. I have used this code, which does what I want but I feel it could be better:
ods graphics on;
proc univariate data=Measures;
var Length Width;
qqplot;
title ‘QQ Plot for Health Awareness Index’;
ods graphics off;
run;
Next I want to produce a Scatter Plot using ODS for Health Awareness Index and Age for Male subjects only. I have tried using:
ods graphics on;
proc sgscatter data=flu;
plot HealthAwareIndex*weight
run;
ods graphics off;
What I would like to know how to do and I just can't figure it is how would you produce separate histograms on one page? Ideally for males between Ages 50 and 70. Any hints or help would be gratefully appreciated.