<?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: Stratified Newcombe method when zero responder in control arm in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Stratified-Newcombe-method-when-zero-responder-in-control-arm/m-p/935550#M367833</link>
    <description>&lt;P&gt;Sorry see attached Marco with stimulation data , please ignore previous one&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jul 2024 07:07:04 GMT</pubDate>
    <dc:creator>Avinash_biostat</dc:creator>
    <dc:date>2024-07-12T07:07:04Z</dc:date>
    <item>
      <title>Stratified Newcombe method when zero responder in control arm</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stratified-Newcombe-method-when-zero-responder-in-control-arm/m-p/935153#M367685</link>
      <description>&lt;P&gt;Dear,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am calculating CI using stratified Newcombe method in Proc Freq, however i have control arm with zero responder and this study have two stratification factor, while running to code i m getting message that&amp;nbsp;&lt;BR /&gt;"NOTE: Newcombe confidence limits for the common risk difference cannot be computed for this table (Treatment by Responder&lt;BR /&gt;controlling for startum) due to zero-frequency rows, columns, or cells."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked paper and it is possible that we can calculate CIs even L2 and U2 are zero. could you please help why SAS is not showing results in this particular case.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 13:53:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stratified-Newcombe-method-when-zero-responder-in-control-arm/m-p/935153#M367685</guid>
      <dc:creator>Avinash_biostat</dc:creator>
      <dc:date>2024-07-09T13:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Stratified Newcombe method when zero responder in control arm</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stratified-Newcombe-method-when-zero-responder-in-control-arm/m-p/935178#M367698</link>
      <description>&lt;P&gt;You should as a minimum include the code you are currently running, better would be to include a data step to create data or use the code on a SAS supplied data set that has the same behavior.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Better would be to include a link to a paper that references how to calculate the CI when L2 and U2 are 0.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 16:20:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stratified-Newcombe-method-when-zero-responder-in-control-arm/m-p/935178#M367698</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-07-09T16:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Stratified Newcombe method when zero responder in control arm</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stratified-Newcombe-method-when-zero-responder-in-control-arm/m-p/935224#M367719</link>
      <description>&lt;P&gt;The formulas for the stratified Newcombe confidence limits are given here:&amp;nbsp;&lt;A href="https://go.documentation.sas.com/doc/en/statcdc/14.3/statug/statug_freq_details62.htm" target="_self"&gt;https://go.documentation.sas.com/doc/en/statcdc/14.3/statug/statug_freq_details62.htm&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You will see that zero frequency rows/columns/cells will lead to division by zero in the formula, which is why you get that note.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 20:00:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stratified-Newcombe-method-when-zero-responder-in-control-arm/m-p/935224#M367719</guid>
      <dc:creator>Mike_N</dc:creator>
      <dc:date>2024-07-09T20:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Stratified Newcombe method when zero responder in control arm</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stratified-Newcombe-method-when-zero-responder-in-control-arm/m-p/935333#M367744</link>
      <description>&lt;P&gt;I wanted to understand from below formula where cause issue, if L2 and U2 are zero due to zero responder in strata 2, but we have values for L1 and U1 so if we include in Below L and U still you can Lower and Upper, but I am not sure whether it reliable or not.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Avinash_biostat_0-1720621344687.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98293iFA3C7BB6CB537915/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Avinash_biostat_0-1720621344687.png" alt="Avinash_biostat_0-1720621344687.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could refer below paper (SAS macro) where it provides the Stratified Newcombe confidence limit with zero responder in one of strata. But I am not sure how reliable it is, that could reason SAS is not showing results in such cases (where zero responder in one of strata)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.pharmasug.org/proceedings/2013/SP/PharmaSUG-2013-SP04.pdf" target="_blank" rel="noopener"&gt;https://www.pharmasug.org/proceedings/2013/SP/PharmaSUG-2013-SP04.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 14:27:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stratified-Newcombe-method-when-zero-responder-in-control-arm/m-p/935333#M367744</guid>
      <dc:creator>Avinash_biostat</dc:creator>
      <dc:date>2024-07-10T14:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Stratified Newcombe method when zero responder in control arm</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stratified-Newcombe-method-when-zero-responder-in-control-arm/m-p/935342#M367746</link>
      <description>&lt;P&gt;Can you post the code you are running, and the associated log? Beyond giving you a reference to the appropriate documentation, it's hard to speculate on what might be going on.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 14:59:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stratified-Newcombe-method-when-zero-responder-in-control-arm/m-p/935342#M367746</guid>
      <dc:creator>Mike_N</dc:creator>
      <dc:date>2024-07-10T14:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Stratified Newcombe method when zero responder in control arm</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stratified-Newcombe-method-when-zero-responder-in-control-arm/m-p/935443#M367782</link>
      <description>&lt;P&gt;Pls see attachment of SAS code, suppose I have zero responder in strata 2 then "proc freq" unable to provide Newcombe confidence limit with note that,&lt;/P&gt;&lt;P&gt;" NOTE: Newcombe confidence limits for the common risk difference cannot be computed for this table (Treatment by Responder&lt;BR /&gt;controlling for startum) due to zero-frequency rows, columns, or cells."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However if I use that macro then I gets values for CI for Newcombe .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help why it is happening from SAS, why SAS is giving results, it is due to CI is not reliable even it is calculable ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 11:15:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stratified-Newcombe-method-when-zero-responder-in-control-arm/m-p/935443#M367782</guid>
      <dc:creator>Avinash_biostat</dc:creator>
      <dc:date>2024-07-11T11:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Stratified Newcombe method when zero responder in control arm</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stratified-Newcombe-method-when-zero-responder-in-control-arm/m-p/935516#M367822</link>
      <description>&lt;P&gt;I get an error when I run this macro, and it fails to generate Newcombe confidence intervals. In the log, I see a 'divide by zero' warning, and a resulting error in computing the Newcome CI. In the paper you cite, look at the last term on the last line of page 2. In your simulated data, you have two strata and no responders in the placebo group in either stratum. Therefore, the denominator of that term is zero for the placebo group, which prevents the computation from proceeding.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2024 17:30:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stratified-Newcombe-method-when-zero-responder-in-control-arm/m-p/935516#M367822</guid>
      <dc:creator>Mike_N</dc:creator>
      <dc:date>2024-07-11T17:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Stratified Newcombe method when zero responder in control arm</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stratified-Newcombe-method-when-zero-responder-in-control-arm/m-p/935549#M367832</link>
      <description>&lt;P&gt;I apologies, i made some change in macro so it was giving error. I attached now corrected one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I agree it gives warning&amp;nbsp;&amp;nbsp;"WARNING: Division by zero, result set to missing value.",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 06:59:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stratified-Newcombe-method-when-zero-responder-in-control-arm/m-p/935549#M367832</guid>
      <dc:creator>Avinash_biostat</dc:creator>
      <dc:date>2024-07-12T06:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Stratified Newcombe method when zero responder in control arm</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stratified-Newcombe-method-when-zero-responder-in-control-arm/m-p/935550#M367833</link>
      <description>&lt;P&gt;Sorry see attached Marco with stimulation data , please ignore previous one&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 07:07:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stratified-Newcombe-method-when-zero-responder-in-control-arm/m-p/935550#M367833</guid>
      <dc:creator>Avinash_biostat</dc:creator>
      <dc:date>2024-07-12T07:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Stratified Newcombe method when zero responder in control arm</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stratified-Newcombe-method-when-zero-responder-in-control-arm/m-p/935615#M367848</link>
      <description>&lt;P&gt;The macro is giving you the wrong answer. This is technical, but the macro doesn't properly handle missing values in the section that uses proc IML. In proc IML, as stated in the warning, division by zero produces a matrix of missing values. However, if you take the sum of a matrix of missing values, you will get zero, which is probably not what you expect. For example, try running the following code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc iml; 
	x = {. . , . . };
	print x;
	y = x[+, ];
	print y;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The code stores the column sums of the matrix x in the matrix y. You'll note, however, that y is a matrix of zeros, even though the intuitive result would be a matrix of missing values. (The reasons for this behavior are beyond the scope of this post).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This comes into play in the following lines of the macro:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; newcombe_L2 =wilson_L2[+,];
 newcombe_U2 =wilson_U2[+,];&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The wilson_L2 and wilson_U2 matrices contain only missing values, but newcombe_L2 and newcombe_U2 will contain zeros because of the behavior I described above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Those zeros are not the correct values for the computation, and you get the wrong values for the confidence interval. Proc FREQ handles this situation correctly and gives you a note that the Newcombe confidence interval cannot be computed in this situation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 14:45:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stratified-Newcombe-method-when-zero-responder-in-control-arm/m-p/935615#M367848</guid>
      <dc:creator>Mike_N</dc:creator>
      <dc:date>2024-07-12T14:45:11Z</dc:date>
    </item>
  </channel>
</rss>

