<?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 Cause specific hazard ratios - data structure in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Cause-specific-hazard-ratios-data-structure/m-p/831698#M41171</link>
    <description>&lt;P&gt;I have a dataset (one row per subject) with the possibility that a subject can experience 3 events, one of them being death. I am using the following code to get &lt;U&gt;&lt;STRONG&gt;cause specific hazard ratios&lt;/STRONG&gt;&lt;/U&gt; for treatment group A vs. B at different levels of variable 'Category' for each of these 3 events. So, the 'Status' variable has 4 values, 0-no events, 1-event1, 2-event2, 3-death. And there are 5 effects including an interaction term in the model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have the following questions -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Should the time variable be the number of days until the &lt;U&gt;&lt;STRONG&gt;first&lt;/STRONG&gt; &lt;/U&gt;event (among all 3) or no event occurs&lt;/P&gt;
&lt;P&gt;2. Is the code below correct. If so, the only changes when running the code for event types 2 and 3 are the censoring values&lt;/P&gt;
&lt;P&gt;3. When asked for an interaction p-value for the 'Category*Trt' term, does reporting the p-value from the joint tests of the SAS output the right thing to do&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Code below for Event Type 1 (Status=&lt;STRONG&gt;1)&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;proc phreg data=ds;&lt;/P&gt;
&lt;P&gt;class Trt(ref='B') Category(ref='1') Sex(ref='Female');&lt;/P&gt;
&lt;P&gt;model T*Status(0, 2, 3) = Category&amp;nbsp; Trt&amp;nbsp; Category*Trt&amp;nbsp; &amp;nbsp;Age&amp;nbsp; Sex;&lt;/P&gt;
&lt;P&gt;hazardratio "A vs. B" Trt / at(Category=all) diff=pairwise;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Sun, 04 Sep 2022 03:56:53 GMT</pubDate>
    <dc:creator>kc</dc:creator>
    <dc:date>2022-09-04T03:56:53Z</dc:date>
    <item>
      <title>Cause specific hazard ratios - data structure</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Cause-specific-hazard-ratios-data-structure/m-p/831698#M41171</link>
      <description>&lt;P&gt;I have a dataset (one row per subject) with the possibility that a subject can experience 3 events, one of them being death. I am using the following code to get &lt;U&gt;&lt;STRONG&gt;cause specific hazard ratios&lt;/STRONG&gt;&lt;/U&gt; for treatment group A vs. B at different levels of variable 'Category' for each of these 3 events. So, the 'Status' variable has 4 values, 0-no events, 1-event1, 2-event2, 3-death. And there are 5 effects including an interaction term in the model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have the following questions -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Should the time variable be the number of days until the &lt;U&gt;&lt;STRONG&gt;first&lt;/STRONG&gt; &lt;/U&gt;event (among all 3) or no event occurs&lt;/P&gt;
&lt;P&gt;2. Is the code below correct. If so, the only changes when running the code for event types 2 and 3 are the censoring values&lt;/P&gt;
&lt;P&gt;3. When asked for an interaction p-value for the 'Category*Trt' term, does reporting the p-value from the joint tests of the SAS output the right thing to do&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Code below for Event Type 1 (Status=&lt;STRONG&gt;1)&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;proc phreg data=ds;&lt;/P&gt;
&lt;P&gt;class Trt(ref='B') Category(ref='1') Sex(ref='Female');&lt;/P&gt;
&lt;P&gt;model T*Status(0, 2, 3) = Category&amp;nbsp; Trt&amp;nbsp; Category*Trt&amp;nbsp; &amp;nbsp;Age&amp;nbsp; Sex;&lt;/P&gt;
&lt;P&gt;hazardratio "A vs. B" Trt / at(Category=all) diff=pairwise;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 04 Sep 2022 03:56:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Cause-specific-hazard-ratios-data-structure/m-p/831698#M41171</guid>
      <dc:creator>kc</dc:creator>
      <dc:date>2022-09-04T03:56:53Z</dc:date>
    </item>
  </channel>
</rss>

