I am trying to create histograms with certain bins for multiple units. I then need to find the mean and standard errors of all the units at each particular bin. The problem I am having is that my OUTHISTOGRAM statement doesn't include the bins past the last bin I have data in. This is problematic when trying to find accurate means and standard errors as I need the data from ever bin from 0 to 5, even if there is 0 in that bin. Here is the code I'm using: proc univariate data=work.serotonin noprint; histogram Unit1 - Unit25 / midpoints = 0 to 5 by .25 rtinclude outhistogram = SerotoninHist; run; title "5-HT"; Proc means data=work.serotoninhist Mean STDERR; class _MIDPT_; var _OBSPCT_ ; run; I need the Proc Univariate outhistogram to include all bins from 0 - 5, which then needs to lead to the number of obs column in the Proc means output to read 25 for each bin, allowing accurate means and standard errors. I'm pretty new to SAS, so any help will be much appreciated! I'm using SAS University edition.
... View more