<?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 Testing ratio different from benchmark // proportional test in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Testing-ratio-different-from-benchmark-proportional-test/m-p/439583#M23172</link>
    <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my data, each row is a experiment with number of (YES), number of (NO) and a benchmark ratio.&lt;/P&gt;
&lt;P&gt;Each row, I want to perform a test to see if the actual Yes/No ratio significantly greater than the benchmark ratio (with confident interval of 7%). I want to export the test result out.&lt;/P&gt;
&lt;P&gt;Can you please help me with that problem?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HHCFX&lt;/P&gt;
&lt;P&gt;data have; &lt;BR /&gt;input id yes no benchmark_ratio;&lt;BR /&gt;datalines;&lt;BR /&gt;1 90 10 0.52 55 40 0.73 50000 40000 0.5;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;data have; set have;&lt;BR /&gt;actual_ratio=yes/(yes+no);run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data have; set have;&lt;BR /&gt;z=(actual_ratio-benchmark_ratio)/(benchmark_ratio*(1-benchmark_ratio)/(yes+no))**0.5;&lt;BR /&gt;p=1-cdf('normal',z,0,1);&lt;BR /&gt;if p&amp;lt;0.05 and z&amp;gt;0 then significantly_higher=1;&lt;BR /&gt;if p&amp;gt;0.95 and z&amp;lt;0 then significantly_lower=1;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://onlinecourses.science.psu.edu/statprogram/node/164" target="_blank"&gt;https://onlinecourses.science.psu.edu/statprogram/node/164&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/standard-normal-probability-density-and-cumulative-functions/td-p/15540" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/standard-normal-probability-density-and-cumulative-functions/td-p/15540&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data a;&lt;BR /&gt;x=pdf('normal',1.644853627,0,1);&lt;BR /&gt;y=1-cdf('normal',1.644853627,0,1);run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
&lt;BR /&gt;data have; &lt;BR /&gt;input id yes no benchmark_ratio;&lt;BR /&gt;datalines;&lt;BR /&gt;1 90 10 0.52 55 40 0.73 50000 40000 0.5;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;data have; set have;&lt;BR /&gt;actual_ratio=yes/(yes+no);run;&lt;BR /&gt;&lt;BR /&gt;data have; set have;&lt;BR /&gt;z=(actual_ratio-benchmark_ratio)/(benchmark_ratio*(1-benchmark_ratio)/(yes+no))**0.5;&lt;BR /&gt;p=1-cdf('normal',z,0,1);&lt;BR /&gt;if p&amp;lt;0.05 and z&amp;gt;0 then significantly_higher=1;&lt;BR /&gt;if p&amp;gt;0.95 and z&amp;lt;0 then significantly_lower=1;run;&lt;BR /&gt;&lt;BR /&gt;https://onlinecourses.science.psu.edu/statprogram/node/164 &lt;BR /&gt;https://communities.sas.com/t5/Base-SAS-Programming/standard-normal-probability-density-and-cumulative-functions/td-p/15540&lt;BR /&gt;&lt;BR /&gt;data a;&lt;BR /&gt;x=pdf('normal',1.644853627,0,1);&lt;BR /&gt;y=1-cdf('normal',1.644853627,0,1);run;&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Feb 2018 12:49:44 GMT</pubDate>
    <dc:creator>hhchenfx</dc:creator>
    <dc:date>2018-02-23T12:49:44Z</dc:date>
    <item>
      <title>Testing ratio different from benchmark // proportional test</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Testing-ratio-different-from-benchmark-proportional-test/m-p/439583#M23172</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my data, each row is a experiment with number of (YES), number of (NO) and a benchmark ratio.&lt;/P&gt;
&lt;P&gt;Each row, I want to perform a test to see if the actual Yes/No ratio significantly greater than the benchmark ratio (with confident interval of 7%). I want to export the test result out.&lt;/P&gt;
&lt;P&gt;Can you please help me with that problem?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HHCFX&lt;/P&gt;
&lt;P&gt;data have; &lt;BR /&gt;input id yes no benchmark_ratio;&lt;BR /&gt;datalines;&lt;BR /&gt;1 90 10 0.52 55 40 0.73 50000 40000 0.5;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;data have; set have;&lt;BR /&gt;actual_ratio=yes/(yes+no);run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data have; set have;&lt;BR /&gt;z=(actual_ratio-benchmark_ratio)/(benchmark_ratio*(1-benchmark_ratio)/(yes+no))**0.5;&lt;BR /&gt;p=1-cdf('normal',z,0,1);&lt;BR /&gt;if p&amp;lt;0.05 and z&amp;gt;0 then significantly_higher=1;&lt;BR /&gt;if p&amp;gt;0.95 and z&amp;lt;0 then significantly_lower=1;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://onlinecourses.science.psu.edu/statprogram/node/164" target="_blank"&gt;https://onlinecourses.science.psu.edu/statprogram/node/164&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/standard-normal-probability-density-and-cumulative-functions/td-p/15540" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/standard-normal-probability-density-and-cumulative-functions/td-p/15540&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data a;&lt;BR /&gt;x=pdf('normal',1.644853627,0,1);&lt;BR /&gt;y=1-cdf('normal',1.644853627,0,1);run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
&lt;BR /&gt;data have; &lt;BR /&gt;input id yes no benchmark_ratio;&lt;BR /&gt;datalines;&lt;BR /&gt;1 90 10 0.52 55 40 0.73 50000 40000 0.5;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;data have; set have;&lt;BR /&gt;actual_ratio=yes/(yes+no);run;&lt;BR /&gt;&lt;BR /&gt;data have; set have;&lt;BR /&gt;z=(actual_ratio-benchmark_ratio)/(benchmark_ratio*(1-benchmark_ratio)/(yes+no))**0.5;&lt;BR /&gt;p=1-cdf('normal',z,0,1);&lt;BR /&gt;if p&amp;lt;0.05 and z&amp;gt;0 then significantly_higher=1;&lt;BR /&gt;if p&amp;gt;0.95 and z&amp;lt;0 then significantly_lower=1;run;&lt;BR /&gt;&lt;BR /&gt;https://onlinecourses.science.psu.edu/statprogram/node/164 &lt;BR /&gt;https://communities.sas.com/t5/Base-SAS-Programming/standard-normal-probability-density-and-cumulative-functions/td-p/15540&lt;BR /&gt;&lt;BR /&gt;data a;&lt;BR /&gt;x=pdf('normal',1.644853627,0,1);&lt;BR /&gt;y=1-cdf('normal',1.644853627,0,1);run;&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 12:49:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Testing-ratio-different-from-benchmark-proportional-test/m-p/439583#M23172</guid>
      <dc:creator>hhchenfx</dc:creator>
      <dc:date>2018-02-23T12:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Testing ratio different from benchmark</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Testing-ratio-different-from-benchmark-proportional-test/m-p/439594#M23176</link>
      <description>&lt;P&gt;Change your data structure and do Z-Test or Chi-Square Test in &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; blog:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2017/07/05/test-equality-two-proportions-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2017/07/05/test-equality-two-proportions-sas.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 06:10:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Testing-ratio-different-from-benchmark-proportional-test/m-p/439594#M23176</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-02-23T06:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Testing ratio different from benchmark</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Testing-ratio-different-from-benchmark-proportional-test/m-p/439670#M23180</link>
      <description>&lt;P&gt;Thanks a lot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HHCFX&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 12:23:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Testing-ratio-different-from-benchmark-proportional-test/m-p/439670#M23180</guid>
      <dc:creator>hhchenfx</dc:creator>
      <dc:date>2018-02-23T12:23:13Z</dc:date>
    </item>
  </channel>
</rss>

