<?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: Categorical time dependent covariate in Cox in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Categorical-time-dependent-covariate-in-Cox/m-p/731593#M227897</link>
    <description>&lt;P&gt;Categorical and ordinal variables should be converted to dichotomous variables.&amp;nbsp; &amp;nbsp;Why.&amp;nbsp; There are more intricate explanations, so long story short:&amp;nbsp; Grade level, e.g. in the US: K, 1 through 12,&amp;nbsp; is an ordinal variable.&amp;nbsp; It can't be used as a analysis variables because there is no sense in taking the difference in grade nor the mean of grade.&amp;nbsp; K, 1 through 12 are categories, they would work equally well if they were labeled A,B..M.&amp;nbsp; being ordinal, there is only the set mathematical relationships that begin&amp;nbsp; grade K is less than grade 1 through 12, 1 less than grade 2, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Look at page 13 of &lt;A href="https://www.lexjansen.com/sesug/2017/SD-29.pdf" target="_self"&gt;this pdf&lt;/A&gt; to see how Gender can be coded with a dichotomous variable scheme.&amp;nbsp; Mind you this is not the only way to do it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;referring to:&amp;nbsp;&amp;nbsp;&lt;A href="https://www.lexjansen.com/sesug/2017/SD-29.pdf" target="_self"&gt;SD-29.pdf (lexjansen.com)&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Apr 2021 13:58:48 GMT</pubDate>
    <dc:creator>PhilC</dc:creator>
    <dc:date>2021-04-06T13:58:48Z</dc:date>
    <item>
      <title>Categorical time dependent covariate in Cox</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Categorical-time-dependent-covariate-in-Cox/m-p/731277#M227797</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I found this topic was discussed before. I figured out how to use it for dichotomous or continuous variable, but I don't find any example in which&amp;nbsp;time dependent covariate is categorical (0, 1,2,3).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please share if you have coding example modeling categorical time dependent variable/covariate.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hao&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/statug/63347/HTML/default/viewer.htm#statug_phreg_sect050.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/statug/63347/HTML/default/viewer.htm#statug_phreg_sect050.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Apr 2021 20:03:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Categorical-time-dependent-covariate-in-Cox/m-p/731277#M227797</guid>
      <dc:creator>haoduonge</dc:creator>
      <dc:date>2021-04-04T20:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Categorical time dependent covariate in Cox</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Categorical-time-dependent-covariate-in-Cox/m-p/731593#M227897</link>
      <description>&lt;P&gt;Categorical and ordinal variables should be converted to dichotomous variables.&amp;nbsp; &amp;nbsp;Why.&amp;nbsp; There are more intricate explanations, so long story short:&amp;nbsp; Grade level, e.g. in the US: K, 1 through 12,&amp;nbsp; is an ordinal variable.&amp;nbsp; It can't be used as a analysis variables because there is no sense in taking the difference in grade nor the mean of grade.&amp;nbsp; K, 1 through 12 are categories, they would work equally well if they were labeled A,B..M.&amp;nbsp; being ordinal, there is only the set mathematical relationships that begin&amp;nbsp; grade K is less than grade 1 through 12, 1 less than grade 2, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Look at page 13 of &lt;A href="https://www.lexjansen.com/sesug/2017/SD-29.pdf" target="_self"&gt;this pdf&lt;/A&gt; to see how Gender can be coded with a dichotomous variable scheme.&amp;nbsp; Mind you this is not the only way to do it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;referring to:&amp;nbsp;&amp;nbsp;&lt;A href="https://www.lexjansen.com/sesug/2017/SD-29.pdf" target="_self"&gt;SD-29.pdf (lexjansen.com)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 13:58:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Categorical-time-dependent-covariate-in-Cox/m-p/731593#M227897</guid>
      <dc:creator>PhilC</dc:creator>
      <dc:date>2021-04-06T13:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Categorical time dependent covariate in Cox</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Categorical-time-dependent-covariate-in-Cox/m-p/731713#M227945</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 20:34:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Categorical-time-dependent-covariate-in-Cox/m-p/731713#M227945</guid>
      <dc:creator>haoduonge</dc:creator>
      <dc:date>2021-04-06T20:34:45Z</dc:date>
    </item>
  </channel>
</rss>

