<?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: relative risk with CI outputting is changing direction at new visit in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/relative-risk-with-CI-outputting-is-changing-direction-at-new/m-p/486858#M25246</link>
    <description>&lt;P&gt;Without data to see what is actually going on I suspect you are getting an interaction between the WHERE clauses and the order of TX within&amp;nbsp;avisitn and &amp;nbsp;avalc. I might try adding TX to the sort as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are going to mention the role of a variable in narrative please make sure that you reference which variable. I don't see a variable "placebo" in your code and have to guess that might be "avalc" mainly because tx is kind of like txgroup.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Aug 2018 21:55:06 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-08-14T21:55:06Z</dc:date>
    <item>
      <title>relative risk with CI outputting is changing direction at new visit</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/relative-risk-with-CI-outputting-is-changing-direction-at-new/m-p/486845#M25245</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am working on relative risk calculations for txgroup * placebo over 3 visits (week 7, 14, and 21).&amp;nbsp; This problem I am having is for some reason, the direction of the rows is switching at week 14.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So say A is row 1,&amp;nbsp; I is row 2;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;Difference is (Row 1 - Row 2)&amp;nbsp; and computes normally.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will change to I as row 1 and A as row 2 for week 14.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Resulting&amp;nbsp; Difference is (Row 1 - Row 2) is backwards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a trick to holding the row positioning&amp;nbsp; constant?&amp;nbsp; the column position&amp;nbsp;is accurate so specifying&amp;nbsp; column=1 does not change anything.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
%macro fish1 (tx1, tx2, num, t);
proc sort data = cfrsdx; by avisitn descending avalc; run;
proc freq data = cfrsdx order=data;
   by avisitn;
   %if &amp;amp;t=0 %then %do;
	 where avisitn in (7 14 21) and tx in (&amp;amp;tx1, &amp;amp;tx2) &amp;amp; ittfl='Y' ;
   %end;
   %else %do;
	 where avisitn=(14)  and tx in (&amp;amp;tx1, &amp;amp;tx2)  &amp;amp; complfl = "Y";
   %end;
   table tx * avalc / chisq riskdiff (cl=newcombe) missing;
   output out=pdata&amp;amp;num fisher riskdiff1;
   ods output PdiffCLs=data&amp;amp;num;
run;
%mend fish1;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 21:09:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/relative-risk-with-CI-outputting-is-changing-direction-at-new/m-p/486845#M25245</guid>
      <dc:creator>jenim514</dc:creator>
      <dc:date>2018-08-14T21:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: relative risk with CI outputting is changing direction at new visit</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/relative-risk-with-CI-outputting-is-changing-direction-at-new/m-p/486858#M25246</link>
      <description>&lt;P&gt;Without data to see what is actually going on I suspect you are getting an interaction between the WHERE clauses and the order of TX within&amp;nbsp;avisitn and &amp;nbsp;avalc. I might try adding TX to the sort as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are going to mention the role of a variable in narrative please make sure that you reference which variable. I don't see a variable "placebo" in your code and have to guess that might be "avalc" mainly because tx is kind of like txgroup.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 21:55:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/relative-risk-with-CI-outputting-is-changing-direction-at-new/m-p/486858#M25246</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-08-14T21:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: relative risk with CI outputting is changing direction at new visit</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/relative-risk-with-CI-outputting-is-changing-direction-at-new/m-p/486868#M25247</link>
      <description>&lt;P&gt;@ ballardw I just tried adding tx to end of my sort, and I think this did the trick!!&amp;nbsp; Sorry, i will try to explain better next time.&amp;nbsp; But thank you!!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 22:57:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/relative-risk-with-CI-outputting-is-changing-direction-at-new/m-p/486868#M25247</guid>
      <dc:creator>jenim514</dc:creator>
      <dc:date>2018-08-14T22:57:31Z</dc:date>
    </item>
  </channel>
</rss>

