<?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: Obtain confidence intervals for Overall Response Rate in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Obtain-confidence-intervals-for-Overall-Response-Rate/m-p/903485#M356989</link>
    <description>&lt;P&gt;Just add the BIN option to the TABLE statement of PROC FREQ&lt;/P&gt;</description>
    <pubDate>Thu, 16 Nov 2023 12:47:12 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2023-11-16T12:47:12Z</dc:date>
    <item>
      <title>Obtain confidence intervals for Overall Response Rate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Obtain-confidence-intervals-for-Overall-Response-Rate/m-p/903252#M356928</link>
      <description>&lt;P&gt;The "Overall Response Rate" (ORR) is a term commonly used in clinical trials, particularly in the field of oncology, to measure the efficacy of a treatment. The ORR reflects the proportion of patients whose cancer shrinks (partial response, PR) or disappears (complete response, CR) after treatment, according to predefined criteria.&lt;/P&gt;
&lt;P&gt;Here's how the ORR is typically calculated:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Identify the Responses&lt;/STRONG&gt;: Determine the number of patients who have a Complete Response (0) and those who have a Partial Response (1) to the treatment. These criteria are often based on standard response evaluation criteria in solid tumors (RECIST).&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Calculate the ORR&lt;/STRONG&gt;: Add the number of patients with CR and the number of patients with PR. Divide this sum by the total number of patients in the subset of the trial being considered. The ORR is usually expressed as a percentage.&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="math math-inline"&gt;&lt;SPAN class="katex"&gt;&lt;SPAN class="katex-mathml"&gt;ORR=(Number&amp;nbsp;of&amp;nbsp;CR+Number&amp;nbsp;of&amp;nbsp;PRTotal&amp;nbsp;Number&amp;nbsp;of&amp;nbsp;Patients)×100%&lt;/SPAN&gt;&lt;SPAN class="katex-html" aria-hidden="true"&gt;&lt;SPAN class="base"&gt;&lt;SPAN class="mord text"&gt;&lt;SPAN class="mord"&gt;ORR&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="mrel"&gt;=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="base"&gt;&lt;SPAN class="minner"&gt;&lt;SPAN class="mopen delimcenter"&gt;&lt;SPAN class="delimsizing size1"&gt;(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="mord"&gt;&lt;SPAN class="mfrac"&gt;&lt;SPAN class="vlist-t vlist-t2"&gt;&lt;SPAN class="vlist-r"&gt;&lt;SPAN class="vlist"&gt;&lt;SPAN&gt;&lt;SPAN class="sizing reset-size6 size3 mtight"&gt;&lt;SPAN class="mord mtight"&gt;&lt;SPAN class="mord text mtight"&gt;Total&amp;nbsp;Number&amp;nbsp;of&amp;nbsp;Patients&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="sizing reset-size6 size3 mtight"&gt;&lt;SPAN class="mord mtight"&gt;&lt;SPAN class="mord text mtight"&gt;Number&amp;nbsp;of&amp;nbsp;CR&lt;/SPAN&gt;&lt;SPAN class="mbin mtight"&gt;+&lt;/SPAN&gt;&lt;SPAN class="mord text mtight"&gt;Number&amp;nbsp;of&amp;nbsp;PR&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="vlist-s"&gt;​&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="mclose delimcenter"&gt;&lt;SPAN class="delimsizing size1"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="mbin"&gt;×&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="base"&gt;&lt;SPAN class="mord"&gt;100%&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;How would I obtain confidence intervals using this code. I have tried clodds= and cl but I get errors. Would proc logistic work better or can i just calculate it in a different data step?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=adrs_inv2; 
tables result_Cr_Pr/  chisq CMH out=a ;
weight pwt; 
output out=resultfile all ; run;&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;When I attempt this code below I get this error and similar when I use CL instead of&amp;nbsp;&lt;CODE class=" language-sas"&gt;CLODDS=WALD&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="smackerz1988_0-1700077741128.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/89849i1B6EF6118BE1DF6D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="smackerz1988_0-1700077741128.png" alt="smackerz1988_0-1700077741128.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=adrs_inv2;
    tables result_Cr_Pr / chisq CMH oddsratio CLODDS=WALD;
    weight pwt;
    output out=resultfile;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So I think this code might do it&amp;nbsp; but the issue I'm getting is that it is not outputting ProportionalCi as a dataset&amp;nbsp; and get a warning about "&lt;SPAN&gt; WARNING: No OUTPUT data set is produced because no statistics are requested."&amp;nbsp;&lt;SPAN class="ui-provider ef bbq azz bbr bbs bbt bbu bbv bbw bbx bby bbz bca bcb bcc bcd bce bcf bcg bch bci bcj bck bcl bcm bcn bco bcp bcq bcr bcs bct bcu bcv bcw"&gt;I just need the percentage of "0", and the confidence interval of the percentage&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;proc freq data=adrs_inv2;
    tables result_Cr_Pr / binomial;
    weight pwt;
    output out=ProportionCI;
run;

/* Additional step to extract only the '0' category if needed */
data ProportionCI_0;
    set ProportionCI;
    where result_Cr_Pr = 0;
run;&lt;/PRE&gt;
&lt;P&gt;Updated sample data&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data adrs_inv2;
input result_Cr_Pr pwt;
datalines;
0 1.51672
0 0.905012
0 1.60279
0 1.94328
0 1.36424
1 1.35838
1 0.834622
1 1.17069
1 1.76961
0 1.54922
1 0.946155
1 1.37191
1 1.8226
1 1.5388
1 1.58788
0 1.25199
1 1.58308
0 0.517571
;
run;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Nov 2023 20:48:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Obtain-confidence-intervals-for-Overall-Response-Rate/m-p/903252#M356928</guid>
      <dc:creator>smackerz1988</dc:creator>
      <dc:date>2023-11-15T20:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Obtain confidence intervals for Overall Response Rate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Obtain-confidence-intervals-for-Overall-Response-Rate/m-p/903263#M356931</link>
      <description>&lt;P&gt;Using this data and code, what is the "Overall Response Rate" and how is it calculated?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What errors do you get? Show us the log.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 17:54:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Obtain-confidence-intervals-for-Overall-Response-Rate/m-p/903263#M356931</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-11-15T17:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Obtain confidence intervals for Overall Response Rate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Obtain-confidence-intervals-for-Overall-Response-Rate/m-p/903311#M356945</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp; I've updated my post to provide further context. Basically the code is partially doing what I need. I just need confidence intervals added. Here is the output&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="smackerz1988_0-1700077892384.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/89850i94810DF282BB9C72/image-size/medium?v=v2&amp;amp;px=400" role="button" title="smackerz1988_0-1700077892384.png" alt="smackerz1988_0-1700077892384.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 19:51:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Obtain-confidence-intervals-for-Overall-Response-Rate/m-p/903311#M356945</guid>
      <dc:creator>smackerz1988</dc:creator>
      <dc:date>2023-11-15T19:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Obtain confidence intervals for Overall Response Rate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Obtain-confidence-intervals-for-Overall-Response-Rate/m-p/903312#M356946</link>
      <description>&lt;P&gt;There is no CLODDS option in the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_freq_syntax08.htm" target="_self"&gt;TABLES statement&lt;/A&gt; of PROC FREQ.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I still don't understand the analysis you are doing. You show an analysis where result_Cr_Pr has values of 0 or 1, but that certainly does not correspond to the input data set you showed us.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From now on, please copy the logs as &lt;FONT color="#FF0000"&gt;text&lt;/FONT&gt; and paste them into the window that appears when you click on the &amp;lt;/&amp;gt; icon above where you type.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 19:57:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Obtain-confidence-intervals-for-Overall-Response-Rate/m-p/903312#M356946</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-11-15T19:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Obtain confidence intervals for Overall Response Rate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Obtain-confidence-intervals-for-Overall-Response-Rate/m-p/903332#M356950</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp; I've updated again&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 20:44:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Obtain-confidence-intervals-for-Overall-Response-Rate/m-p/903332#M356950</guid>
      <dc:creator>smackerz1988</dc:creator>
      <dc:date>2023-11-15T20:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Obtain confidence intervals for Overall Response Rate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Obtain-confidence-intervals-for-Overall-Response-Rate/m-p/903347#M356954</link>
      <description>&lt;P&gt;This is the solution. In Proc freq&amp;nbsp;weights might be creating Non integer values. If the weights are such that they produce noninteger counts, you might not be able to use the binomial option to compute exact confidence intervals directly. However, you can do an approximation using proc surveyfreq&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods output OneWay=ProportionCI;
proc surveyfreq data=adrs_inv2;
    table result_Cr_Pr / cl;
    weight pwt;
run;
ods output close;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Nov 2023 21:21:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Obtain-confidence-intervals-for-Overall-Response-Rate/m-p/903347#M356954</guid>
      <dc:creator>smackerz1988</dc:creator>
      <dc:date>2023-11-15T21:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Obtain confidence intervals for Overall Response Rate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Obtain-confidence-intervals-for-Overall-Response-Rate/m-p/903378#M356963</link>
      <description>&lt;P&gt;The BIN option of PROC FREQ, for binary variables, will produce confidence intervals for you.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 22:01:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Obtain-confidence-intervals-for-Overall-Response-Rate/m-p/903378#M356963</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-11-15T22:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Obtain confidence intervals for Overall Response Rate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Obtain-confidence-intervals-for-Overall-Response-Rate/m-p/903394#M356970</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp; can you show me the code using my example data?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 22:58:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Obtain-confidence-intervals-for-Overall-Response-Rate/m-p/903394#M356970</guid>
      <dc:creator>smackerz1988</dc:creator>
      <dc:date>2023-11-15T22:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Obtain confidence intervals for Overall Response Rate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Obtain-confidence-intervals-for-Overall-Response-Rate/m-p/903485#M356989</link>
      <description>&lt;P&gt;Just add the BIN option to the TABLE statement of PROC FREQ&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 12:47:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Obtain-confidence-intervals-for-Overall-Response-Rate/m-p/903485#M356989</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-11-16T12:47:12Z</dc:date>
    </item>
  </channel>
</rss>

