title: SAS: Creating separate histograms on one page and producing plot for value combinations
body: <p>Column 1:
  Flu Shot Status   </p>
  
  <p>Column 2:
  Age  </p>
  
  <p>Column 3:
  Health Awareness Index  </p>
  
  <p>Column 4:
  Gender</p>
  
  <pre><code>   0    59    52    0
     0    61    55    1
     1    82    51    0
     0    51    70    0
     0    53    70    0
     0    62    49    1
     0    51    69    1
     0    70    54    1
     0    71    65    1
     0    55    58    1
     0    58    48    0
     0    53    58    1
     0    72    65    0
     0    56    68    0
     0    56    83    0
  </code></pre>
  
  <p>That's my dataset above and what I want to do is the following 
  a) Produce a single plot of Health Awareness Index (HAI) and Age for each value combination of Gender and Flu Shot Status and</p>
  
  <p>(I'm not so sure how to do this at all; a few hints about where to start would really help)</p>
  
  <p>b) Produce separate histograms for the variable Health Awareness Index by Flu Shot Status for Males between the Ages of 50 and 70 (including both 50 and 70). Give the histogram a title and color the bars using different colors for each histogram.  Here's my code:</p>
  
  <p>First I will set up a permanent library, as the dataset is titled hw3data.sas:</p>
  
  <pre><code> libname di “c:\flu”;
   data di.HW3 Data;
   infile hw3data.sas;
   input FluShotStatus Age HAI Gender;
   run;
  
   proc sort data=di.hw3
   by age;
   run;
  
   data=di.hw3
   if age=50 to 70
   run;
  
   proc univariate data=Steel;
    var HAI FluShotStatus;
    histogram FluShotStatus;
    run;
  </code></pre>
  
  <p>I'm not so sure how to insert the normal distribution curve here and I guess I could really use some help</p>