<?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: Help need in computing stat when null records present using proc freq in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Help-need-in-computing-stat-when-null-records-present-using-proc/m-p/787176#M38592</link>
    <description>&lt;P&gt;I think your assumption of 0 being required in the interval may be incorrect. What makes you think you need 0 in the interval?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT: If you're looking at the risk ratio, aren't you looking for the presence of 1, similar to odds ratio rather than 0?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/68272"&gt;@knveraraju91&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Dear,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need help in my proc freq steps.&amp;nbsp; In the first proc freq, calculating confidence intervals and in second proc proc freq step, pval value is calculated.&lt;/P&gt;
&lt;P&gt;The results for confidence interval:&amp;nbsp; &amp;nbsp;Lower ci&amp;nbsp; 0.3587&amp;nbsp; &amp;nbsp; Upeerci&amp;nbsp; &amp;nbsp; 0.9746&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The pvalue&amp;nbsp; &amp;nbsp; is&amp;nbsp; &amp;nbsp;:&amp;nbsp; 0.09&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please suggest&amp;nbsp; why p value is greater than 0.05&amp;nbsp; &amp;nbsp;but confidence interval does not include 0.&amp;nbsp; How do I fix in my code&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input trt01an avalct1n;
datalines;
1 1
1 1
2 2
2 1
2 1
2 2
1 1
2 2
2 2
2 1
2 2
2 2
;





 proc freq data = have;
           
            tables trt01an*avalct1n / riskdiff cl alpha = 0.05 ;
           ods output riskdiffcol1 = aa(keep = ordx ord control risk lowercl uppercl where = (control)) ;
          run ;
          
              proc freq data = have;
                                          table avalct1n*trt01an / alpha = 0.05 fisher pdiff cl nocol nopercent ;
                                          exact fisher / alpha = 0.05 ;
                                          ods output fishersexact = exact ;
                                          output out = ac(rename = (xpr_fish = pval)) fisher ;
                                  run ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Dec 2021 22:48:36 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-12-22T22:48:36Z</dc:date>
    <item>
      <title>Help need in computing stat when null records present using proc freq</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-need-in-computing-stat-when-null-records-present-using-proc/m-p/787172#M38590</link>
      <description>&lt;P&gt;Dear,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need help in my proc freq steps.&amp;nbsp; In the first proc freq, calculating confidence intervals and in second proc proc freq step, pval value is calculated.&lt;/P&gt;
&lt;P&gt;The results for confidence interval:&amp;nbsp; &amp;nbsp;Lower ci&amp;nbsp; 0.3587&amp;nbsp; &amp;nbsp; Upeerci&amp;nbsp; &amp;nbsp; 0.9746&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The pvalue&amp;nbsp; &amp;nbsp; is&amp;nbsp; &amp;nbsp;:&amp;nbsp; 0.09&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please suggest&amp;nbsp; why p value is greater than 0.05&amp;nbsp; &amp;nbsp;but confidence interval does not include 0.&amp;nbsp; How do I fix in my code&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input trt01an avalct1n;
datalines;
1 1
1 1
2 2
2 1
2 1
2 2
1 1
2 2
2 2
2 1
2 2
2 2
;





 proc freq data = have;
           
            tables trt01an*avalct1n / riskdiff cl alpha = 0.05 ;
           ods output riskdiffcol1 = aa(keep = ordx ord control risk lowercl uppercl where = (control)) ;
          run ;
          
              proc freq data = have;
                                          table avalct1n*trt01an / alpha = 0.05 fisher pdiff cl nocol nopercent ;
                                          exact fisher / alpha = 0.05 ;
                                          ods output fishersexact = exact ;
                                          output out = ac(rename = (xpr_fish = pval)) fisher ;
                                  run ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 21:37:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-need-in-computing-stat-when-null-records-present-using-proc/m-p/787172#M38590</guid>
      <dc:creator>knveraraju91</dc:creator>
      <dc:date>2021-12-22T21:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help need in computing stat when null records present using proc freq</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-need-in-computing-stat-when-null-records-present-using-proc/m-p/787173#M38591</link>
      <description>&lt;P&gt;What specific tests in the output are you looking at when you see the Confidence Interval?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What specific tests in the output are you looking at when you see the p-value?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 21:49:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-need-in-computing-stat-when-null-records-present-using-proc/m-p/787173#M38591</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-12-22T21:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help need in computing stat when null records present using proc freq</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-need-in-computing-stat-when-null-records-present-using-proc/m-p/787176#M38592</link>
      <description>&lt;P&gt;I think your assumption of 0 being required in the interval may be incorrect. What makes you think you need 0 in the interval?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT: If you're looking at the risk ratio, aren't you looking for the presence of 1, similar to odds ratio rather than 0?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/68272"&gt;@knveraraju91&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Dear,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need help in my proc freq steps.&amp;nbsp; In the first proc freq, calculating confidence intervals and in second proc proc freq step, pval value is calculated.&lt;/P&gt;
&lt;P&gt;The results for confidence interval:&amp;nbsp; &amp;nbsp;Lower ci&amp;nbsp; 0.3587&amp;nbsp; &amp;nbsp; Upeerci&amp;nbsp; &amp;nbsp; 0.9746&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The pvalue&amp;nbsp; &amp;nbsp; is&amp;nbsp; &amp;nbsp;:&amp;nbsp; 0.09&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please suggest&amp;nbsp; why p value is greater than 0.05&amp;nbsp; &amp;nbsp;but confidence interval does not include 0.&amp;nbsp; How do I fix in my code&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input trt01an avalct1n;
datalines;
1 1
1 1
2 2
2 1
2 1
2 2
1 1
2 2
2 2
2 1
2 2
2 2
;





 proc freq data = have;
           
            tables trt01an*avalct1n / riskdiff cl alpha = 0.05 ;
           ods output riskdiffcol1 = aa(keep = ordx ord control risk lowercl uppercl where = (control)) ;
          run ;
          
              proc freq data = have;
                                          table avalct1n*trt01an / alpha = 0.05 fisher pdiff cl nocol nopercent ;
                                          exact fisher / alpha = 0.05 ;
                                          ods output fishersexact = exact ;
                                          output out = ac(rename = (xpr_fish = pval)) fisher ;
                                  run ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 22:48:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-need-in-computing-stat-when-null-records-present-using-proc/m-p/787176#M38592</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-12-22T22:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help need in computing stat when null records present using proc freq</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-need-in-computing-stat-when-null-records-present-using-proc/m-p/787179#M38593</link>
      <description>&lt;P&gt;Thank you very much.&lt;/P&gt;
&lt;P&gt;I need to calculate both CI and Pvalue using&amp;nbsp; Fisher exact since number of subjects less than 5 in one of treatments.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 23:21:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-need-in-computing-stat-when-null-records-present-using-proc/m-p/787179#M38593</guid>
      <dc:creator>knveraraju91</dc:creator>
      <dc:date>2021-12-22T23:21:20Z</dc:date>
    </item>
  </channel>
</rss>

