<?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: How to include subjects when calculating commonrisdiff when subject present only in one treatgro in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-include-subjects-when-calculating-commonrisdiff-when/m-p/878279#M43425</link>
    <description>&lt;P&gt;&lt;STRIKE&gt;Since all records for trt 2 have ss=2, and all but one for trt 1 have ss=2, I would suggest rearranging the TABLES statement. If you truly need to look at the effect of ss, then put it next to last as in:&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;STRIKE&gt; tables age*ph* trt *ss* res / riskdiff(common)  alpha = 0.05 ;
 &lt;/STRIKE&gt;&lt;/PRE&gt;
&lt;P&gt;Pardon the lined out part. It won't help to do anything like what I suggested there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Because there are no records with ss=1 for any other cells in the crosstabulation, it always ends in a column associated with all zeroes for trt and res, and is excluded from riskdiff calculations.&amp;nbsp; You may be able to use an EXACT statement in PROC GENMOD to include this record, but without doing a lot of digging, I don't know if that will give you what you need to calculate a riskdiff.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
    <pubDate>Tue, 30 May 2023 17:51:22 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2023-05-30T17:51:22Z</dc:date>
    <item>
      <title>How to include subjects when calculating commonrisdiff when subject present only in one treatgroup</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-include-subjects-when-calculating-commonrisdiff-when/m-p/878247#M43421</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I am calculating risk diff between treatment groups 1 and 2 by below pgm. The first record&amp;nbsp; 'variable &lt;FONT color="#FF0000"&gt;SS =1&lt;/FONT&gt; 'present only for trt=1.&amp;nbsp; I think this record is omitted by freq pgm because i am getting same values( value,stderr,lowerci,and upperci) when i ran pgm after excluding first record. I need to consider the first record also&amp;nbsp; in calculating riskdiff between trteatments. Please suggest me. Thank you&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data one;
input trt res$ age ss ph $;
datalines;
1 cr 55 1 Y
1 cr 50 2 N
1 cri 55 2 Y
1 cri 50 2 N
1 cri 55 2 N
1 cr 50 2 N
1 cri 55 2 Y
1 cri 50 2 N
2 cri 55 2 Y
2 cri 50 2 N
2 cr 55 2 Y
2 cr 50 2 N
2 cri 55 2 Y
2 cr 50 2 Y
2 cri 55 2 N
2 cri 50 2 N
;

ods select none;
ods output CommonPdiff=rddds RiskDiffPlot=RiskDiffPlot;
 proc freq data = one;
                tables age*ss*ph* trt * res / riskdiff(common)  alpha = 0.05 ;
        run ;
ods select all;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 May 2023 15:46:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-include-subjects-when-calculating-commonrisdiff-when/m-p/878247#M43421</guid>
      <dc:creator>knveraraju91</dc:creator>
      <dc:date>2023-05-30T15:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to include subjects when calculating commonrisdiff when subject present only in one treatgro</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-include-subjects-when-calculating-commonrisdiff-when/m-p/878279#M43425</link>
      <description>&lt;P&gt;&lt;STRIKE&gt;Since all records for trt 2 have ss=2, and all but one for trt 1 have ss=2, I would suggest rearranging the TABLES statement. If you truly need to look at the effect of ss, then put it next to last as in:&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;STRIKE&gt; tables age*ph* trt *ss* res / riskdiff(common)  alpha = 0.05 ;
 &lt;/STRIKE&gt;&lt;/PRE&gt;
&lt;P&gt;Pardon the lined out part. It won't help to do anything like what I suggested there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Because there are no records with ss=1 for any other cells in the crosstabulation, it always ends in a column associated with all zeroes for trt and res, and is excluded from riskdiff calculations.&amp;nbsp; You may be able to use an EXACT statement in PROC GENMOD to include this record, but without doing a lot of digging, I don't know if that will give you what you need to calculate a riskdiff.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 17:51:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-include-subjects-when-calculating-commonrisdiff-when/m-p/878279#M43425</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2023-05-30T17:51:22Z</dc:date>
    </item>
  </channel>
</rss>

