<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How can I normalize percentages based off number of records? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-normalize-percentages-based-off-number-of-records/m-p/597581#M29086</link>
    <description>&lt;P&gt;In your example, what is the math that you want to use to do this standardizing?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Oct 2019 00:55:23 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-10-18T00:55:23Z</dc:date>
    <item>
      <title>How can I normalize percentages based off number of records?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-normalize-percentages-based-off-number-of-records/m-p/597580#M29085</link>
      <description>&lt;P&gt;Hi, my friend asked me the below question but I do not know the answer, could you help me ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;I'm doing a basic graph to show the percent of students who graduated within each major. Something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Biology - 50% graduate, 50% don't graduate&lt;/P&gt;&lt;P&gt;Art - 30% graduate, 70% don't graduate&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to show the majors that have the highest graduation percentages at the top of my graph. However, I want to figure out if there is a way to normalize the percents. What I mean is, some majors are so small they only have 3 students total. So, some majors may have a graduation rate of 66.6%, but really that just means 2 of the 3 students graduated. I want to somehow standardize the percents based off the number of students that make up each percent so that these smaller majors are weighted less.&lt;SPAN&gt;&amp;nbsp;"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 00:50:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-normalize-percentages-based-off-number-of-records/m-p/597580#M29085</guid>
      <dc:creator>joe66</dc:creator>
      <dc:date>2019-10-18T00:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: How can I normalize percentages based off number of records?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-normalize-percentages-based-off-number-of-records/m-p/597581#M29086</link>
      <description>&lt;P&gt;In your example, what is the math that you want to use to do this standardizing?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 00:55:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-normalize-percentages-based-off-number-of-records/m-p/597581#M29086</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-10-18T00:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: How can I normalize percentages based off number of records?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-normalize-percentages-based-off-number-of-records/m-p/597585#M29087</link>
      <description>Hi Paige, to be honest, I do not know the method to do this standardization.......</description>
      <pubDate>Fri, 18 Oct 2019 01:26:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-normalize-percentages-based-off-number-of-records/m-p/597585#M29087</guid>
      <dc:creator>joe66</dc:creator>
      <dc:date>2019-10-18T01:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: How can I normalize percentages based off number of records?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-normalize-percentages-based-off-number-of-records/m-p/597672#M29090</link>
      <description>&lt;P&gt;And to be honest, I don't know either.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 10:42:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-normalize-percentages-based-off-number-of-records/m-p/597672#M29090</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-10-18T10:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: How can I normalize percentages based off number of records?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-normalize-percentages-based-off-number-of-records/m-p/597674#M29091</link>
      <description>&lt;P&gt;Maybe you want something like this:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2013/11/04/create-mosaic-plots-in-sas-by-using-proc-freq.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2013/11/04/create-mosaic-plots-in-sas-by-using-proc-freq.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 10:55:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-normalize-percentages-based-off-number-of-records/m-p/597674#M29091</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-10-18T10:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: How can I normalize percentages based off number of records?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-normalize-percentages-based-off-number-of-records/m-p/597718#M29104</link>
      <description>&lt;P&gt;As you and your friend have observed, the uncertainty in an observed proportion depends on the sample size. Majors with few students have bigger uncertainty around their point estimate than majors with many students.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are two ways to proceed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The simplest is to add confidence intervals (CIs) to the empirical proportion. You would sort the majors by the empirical proportion of graduates, but the CIs would indicate how confident you are in your computation. A DATA step approach would look like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Graduates;
input Major $ Grads Total;
NotGrads = Total - Grads;
datalines;
A 10 22
B 10 32
C 17 25
D  4  7
E  8 14
F 16 28
G 16 19
;

data Binom;
set Graduates;
p = Grads / Total; /* empirical proportion */
StdErr = sqrt(p*(1-p)/Total);
/* use Wald 95% CIs */
z = quantile("normal", 1-0.05/2);
Lower = max(0,  p - z*StdErr);
Upper = min(1,  p + z*StdErr);
label p = "Proportion" Lower="Lower 95% CL" Upper="Upper 95% CL";
run;

proc sort data=Binom;
by p Lower;
run;

proc sgplot data=Binom;
scatter y=Major x=p / 
        xerrorlower=Lower xerrorupper=Upper;
yaxis discreteorder=data;
xaxis grid;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A more sophisticated method is to use&lt;A href="https://blogs.sas.com/content/iml/2018/11/26/funnel-plot-immunization-rates.html" target="_self"&gt; funnel plots for proportions&amp;nbsp;&lt;/A&gt;or to &lt;A href="https://blogs.sas.com/content/iml/2011/03/30/ranking-with-confidence-part-2.html" target="_self"&gt;incorporate the uncertainty into the ranking.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 13:51:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-normalize-percentages-based-off-number-of-records/m-p/597718#M29104</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-10-18T13:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can I normalize percentages based off number of records?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-normalize-percentages-based-off-number-of-records/m-p/598063#M29113</link>
      <description>&lt;P&gt;I wrote an article about this topic: &lt;A href="https://blogs.sas.com/content/iml/2019/10/21/binomial-proportions-sas.html" target="_self"&gt;"Compute and visualize binomial proportions in SAS."&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 09:49:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-normalize-percentages-based-off-number-of-records/m-p/598063#M29113</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-10-21T09:49:21Z</dc:date>
    </item>
  </channel>
</rss>

