<?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: Test for the effect of race adjusting for age, using a likelihood ratio test in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Test-for-the-effect-of-race-adjusting-for-age-using-a-likelihood/m-p/637595#M189512</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/266162"&gt;@mblack-732&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;How do I get SAS to realize that I only want the difference in the model to be the race variable?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What does that mean?&lt;/P&gt;</description>
    <pubDate>Sat, 04 Apr 2020 17:48:19 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2020-04-04T17:48:19Z</dc:date>
    <item>
      <title>Test for the effect of race adjusting for age, using a likelihood ratio test</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Test-for-the-effect-of-race-adjusting-for-age-using-a-likelihood/m-p/637586#M189510</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I'm struggling a little bit with a SAS Code... I'm trying to&amp;nbsp;test for the effect of race adjusting for age, using a likelihood ratio test via the PROC PHREG method. My Code so far is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;PROC PHREG DATA=HW9;&lt;BR /&gt;&amp;nbsp;CLASS age;&lt;BR /&gt;&amp;nbsp;MODEL time*status(0) = age;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;RUN;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;PROC PHREG DATA=HW9;&lt;BR /&gt;&amp;nbsp;CLASS age race;&lt;BR /&gt;&amp;nbsp;MODEL time*status(0) = age race;&lt;BR /&gt;RUN;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;How do I get SAS to realize that I only want the difference in the model to be the race variable?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Apr 2020 16:31:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Test-for-the-effect-of-race-adjusting-for-age-using-a-likelihood/m-p/637586#M189510</guid>
      <dc:creator>mblack-732</dc:creator>
      <dc:date>2020-04-04T16:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Test for the effect of race adjusting for age, using a likelihood ratio test</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Test-for-the-effect-of-race-adjusting-for-age-using-a-likelihood/m-p/637595#M189512</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/266162"&gt;@mblack-732&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;How do I get SAS to realize that I only want the difference in the model to be the race variable?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What does that mean?&lt;/P&gt;</description>
      <pubDate>Sat, 04 Apr 2020 17:48:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Test-for-the-effect-of-race-adjusting-for-age-using-a-likelihood/m-p/637595#M189512</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-04-04T17:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Test for the effect of race adjusting for age, using a likelihood ratio test</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Test-for-the-effect-of-race-adjusting-for-age-using-a-likelihood/m-p/637597#M189513</link>
      <description>&lt;P&gt;Hi, Paige!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just want SAS to compare the full model with age and race to the smaller model with just age but it doesn't seem to be doing that (I have the correct answers from R).&lt;/P&gt;</description>
      <pubDate>Sat, 04 Apr 2020 17:50:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Test-for-the-effect-of-race-adjusting-for-age-using-a-likelihood/m-p/637597#M189513</guid>
      <dc:creator>mblack-732</dc:creator>
      <dc:date>2020-04-04T17:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Test for the effect of race adjusting for age, using a likelihood ratio test</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Test-for-the-effect-of-race-adjusting-for-age-using-a-likelihood/m-p/637599#M189514</link>
      <description>&lt;P&gt;Typically, SAS doesn't compare models for you. You'd have to do the comparison using the output of each model. For ordinary regression, you can use the &lt;A href="https://www.stat.purdue.edu/~ghobbs/STAT_512/Lecture_Notes/Regression/Topic_13.pdf" target="_self"&gt;Extra Sum of Squares principle&lt;/A&gt;. I'm not sure what the equivalent is for PROC PHREG.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Apr 2020 17:54:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Test-for-the-effect-of-race-adjusting-for-age-using-a-likelihood/m-p/637599#M189514</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-04-04T17:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Test for the effect of race adjusting for age, using a likelihood ratio test</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Test-for-the-effect-of-race-adjusting-for-age-using-a-likelihood/m-p/637699#M189572</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/266162"&gt;@mblack-732&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use the &lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_phreg_syntax17.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en#statug.phreg.phrmodtype1" target="_blank" rel="noopener"&gt;TYPE1&lt;/A&gt; option of the MODEL statement to request that likelihood ratio test statistic and p-value:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;MODEL time*status(0) = age race / type1;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This will create the additional output table "Likelihood Ratio Statistics for Type 1 Analysis" as shown below (using my random data):&lt;/P&gt;
&lt;PRE&gt;           Likelihood Ratio Statistics for Type 1 Analysis

                                                      LR
Source                    -2 Log L      DF    Chi-Square    Pr &amp;gt; ChiSq

(Without Covariates)     1361.3610       .         .             .
age                      1350.7645       4       10.5965        0.0315
race                     1346.8845       3        3.8801        0.2747&lt;/PRE&gt;
&lt;P&gt;The last row of the table contains the test results you're after.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Apr 2020 15:35:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Test-for-the-effect-of-race-adjusting-for-age-using-a-likelihood/m-p/637699#M189572</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-04-05T15:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Test for the effect of race adjusting for age, using a likelihood ratio test</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Test-for-the-effect-of-race-adjusting-for-age-using-a-likelihood/m-p/637700#M189573</link>
      <description>&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
      <pubDate>Sun, 05 Apr 2020 15:37:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Test-for-the-effect-of-race-adjusting-for-age-using-a-likelihood/m-p/637700#M189573</guid>
      <dc:creator>mblack-732</dc:creator>
      <dc:date>2020-04-05T15:37:12Z</dc:date>
    </item>
  </channel>
</rss>

