<?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 How to do the non-inferiority by Chi-square test for the comparison of proportions groups? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-do-the-non-inferiority-by-Chi-square-test-for-the/m-p/165691#M263704</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Background:&lt;/STRONG&gt;&amp;nbsp; I calcualted the sample size for 2 groups with the response is binary data, and the proportion is the proportion of responders.&amp;nbsp; The two group have same size. Target to test the non-inferiority between the proportion of group 1 and group 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Size calculation Code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;proc power;&lt;/P&gt;&lt;P&gt;twosamplefreq alpha=0.05 test=pchi sides=U npergroup=24 nullproportiondiff=-0.3&lt;/P&gt;&lt;P&gt;refproportion=0.9&lt;/P&gt;&lt;P&gt;proportiondiff=-0.06 power=.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question:&amp;nbsp; &lt;/STRONG&gt;Since this power calculation is based on the&lt;STRONG&gt; Pearson Chi-square test&lt;/STRONG&gt;, how could I reach the aim to test non-inferiority test of following Hypothesis testing by use of &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Chi-square Test?&lt;/STRONG&gt;&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;H0: proportion of group 1 - (minus) proportion of group 2 &lt;SPAN style="text-decoration: underline;"&gt;greater than or equal to &lt;/SPAN&gt;-0.03 (0.03 is the margin)&lt;/P&gt;&lt;P&gt;vs&lt;/P&gt;&lt;P&gt;H1: proportion of group 1 - (minus) proportion of group 2 &lt;SPAN style="text-decoration: underline;"&gt; less than &lt;/SPAN&gt;-0.03 (0.03 is the margin)&lt;/P&gt;&lt;P&gt;The criteria to conclude: The 95% confidence interval of the proportion differences based on Chi-square test&amp;nbsp; will be calculated and the non-inferiority will be concluded if the &lt;STRONG&gt;LOWER bound of &lt;/STRONG&gt;the confidence interval is greater than -0.3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What I found is: &lt;/STRONG&gt; The only test I found in SAS manual and below link is by use of &lt;STRONG&gt;WADL&lt;/STRONG&gt; test, and there is &lt;STRONG&gt;NO&lt;/STRONG&gt; Chi-square test available to use. Could you tell me what should I do to analyze the data? Just continue to use the WALD test, and conclude the noninferiority if the 95% confidence interval lower bound exceeds -0.3?&lt;/P&gt;&lt;P&gt; The following code is the dummy data I created and the code to test by use of WALD test, please&amp;nbsp; help me on my questions, thanks.&lt;/P&gt;&lt;P&gt;data pd1;&lt;BR /&gt; input grp $ response count;&lt;BR /&gt; datalines;&lt;BR /&gt; grp1 1 20&lt;BR /&gt; grp1 0 4&lt;BR /&gt; plcb 1 18&lt;BR /&gt; plcb 0 6&lt;BR /&gt; ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;/*Do non-inferiority test by Chi-square test*/&lt;BR /&gt;proc freq data=pd1;&lt;BR /&gt; tables grp*response/alpha=0.025 riskdiff(noninf column=2 correct margin=0.3);/*noninf:non-inferiority test; margin: the margin want to detect*/&lt;BR /&gt; weight count;/*count: then number of responders*/&lt;BR /&gt;run; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Feb 2015 11:41:44 GMT</pubDate>
    <dc:creator>Jack2012</dc:creator>
    <dc:date>2015-02-12T11:41:44Z</dc:date>
    <item>
      <title>How to do the non-inferiority by Chi-square test for the comparison of proportions groups?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-do-the-non-inferiority-by-Chi-square-test-for-the/m-p/165691#M263704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Background:&lt;/STRONG&gt;&amp;nbsp; I calcualted the sample size for 2 groups with the response is binary data, and the proportion is the proportion of responders.&amp;nbsp; The two group have same size. Target to test the non-inferiority between the proportion of group 1 and group 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Size calculation Code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;proc power;&lt;/P&gt;&lt;P&gt;twosamplefreq alpha=0.05 test=pchi sides=U npergroup=24 nullproportiondiff=-0.3&lt;/P&gt;&lt;P&gt;refproportion=0.9&lt;/P&gt;&lt;P&gt;proportiondiff=-0.06 power=.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question:&amp;nbsp; &lt;/STRONG&gt;Since this power calculation is based on the&lt;STRONG&gt; Pearson Chi-square test&lt;/STRONG&gt;, how could I reach the aim to test non-inferiority test of following Hypothesis testing by use of &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Chi-square Test?&lt;/STRONG&gt;&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;H0: proportion of group 1 - (minus) proportion of group 2 &lt;SPAN style="text-decoration: underline;"&gt;greater than or equal to &lt;/SPAN&gt;-0.03 (0.03 is the margin)&lt;/P&gt;&lt;P&gt;vs&lt;/P&gt;&lt;P&gt;H1: proportion of group 1 - (minus) proportion of group 2 &lt;SPAN style="text-decoration: underline;"&gt; less than &lt;/SPAN&gt;-0.03 (0.03 is the margin)&lt;/P&gt;&lt;P&gt;The criteria to conclude: The 95% confidence interval of the proportion differences based on Chi-square test&amp;nbsp; will be calculated and the non-inferiority will be concluded if the &lt;STRONG&gt;LOWER bound of &lt;/STRONG&gt;the confidence interval is greater than -0.3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What I found is: &lt;/STRONG&gt; The only test I found in SAS manual and below link is by use of &lt;STRONG&gt;WADL&lt;/STRONG&gt; test, and there is &lt;STRONG&gt;NO&lt;/STRONG&gt; Chi-square test available to use. Could you tell me what should I do to analyze the data? Just continue to use the WALD test, and conclude the noninferiority if the 95% confidence interval lower bound exceeds -0.3?&lt;/P&gt;&lt;P&gt; The following code is the dummy data I created and the code to test by use of WALD test, please&amp;nbsp; help me on my questions, thanks.&lt;/P&gt;&lt;P&gt;data pd1;&lt;BR /&gt; input grp $ response count;&lt;BR /&gt; datalines;&lt;BR /&gt; grp1 1 20&lt;BR /&gt; grp1 0 4&lt;BR /&gt; plcb 1 18&lt;BR /&gt; plcb 0 6&lt;BR /&gt; ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;/*Do non-inferiority test by Chi-square test*/&lt;BR /&gt;proc freq data=pd1;&lt;BR /&gt; tables grp*response/alpha=0.025 riskdiff(noninf column=2 correct margin=0.3);/*noninf:non-inferiority test; margin: the margin want to detect*/&lt;BR /&gt; weight count;/*count: then number of responders*/&lt;BR /&gt;run; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 11:41:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-do-the-non-inferiority-by-Chi-square-test-for-the/m-p/165691#M263704</guid>
      <dc:creator>Jack2012</dc:creator>
      <dc:date>2015-02-12T11:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to do the non-inferiority by Chi-square test for the comparison of proportions groups?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-do-the-non-inferiority-by-Chi-square-test-for-the/m-p/165692#M263705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the link I talked above: &lt;A href="http://support.sas.com/documentation/cdl/en/procstat/63104/HTML/default/viewer.htm#procstat_freq_a0000000661.htm"&gt;http://support.sas.com/documentation/cdl/en/procstat/63104/HTML/default/viewer.htm#procstat_freq_a0000000661.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: frank Green&#xD;
&#xD;
Nobody would like do me a favor? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 11:42:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-do-the-non-inferiority-by-Chi-square-test-for-the/m-p/165692#M263705</guid>
      <dc:creator>Jack2012</dc:creator>
      <dc:date>2015-02-12T11:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to do the non-inferiority by Chi-square test for the comparison of proportions groups?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-do-the-non-inferiority-by-Chi-square-test-for-the/m-p/165693#M263706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jack,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have the same problem. &lt;/P&gt;&lt;P&gt;I search quite a lot how to solve it but found no answer anywhere. I end up using excel and just apply the formula.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2015 13:46:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-do-the-non-inferiority-by-Chi-square-test-for-the/m-p/165693#M263706</guid>
      <dc:creator>estrucida</dc:creator>
      <dc:date>2015-02-20T13:46:57Z</dc:date>
    </item>
  </channel>
</rss>

