<?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 SteveRe: I need help to figure out how to implement a marginal effects model in sas PHREG in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/I-need-help-to-figure-out-how-to-implement-a-marginal-effects/m-p/698703#M33706</link>
    <description>&lt;P&gt;Thank you, Steve. That is a point of start for me. I will check the reference you recommend.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Marcel&lt;/P&gt;</description>
    <pubDate>Fri, 13 Nov 2020 16:30:08 GMT</pubDate>
    <dc:creator>marcel</dc:creator>
    <dc:date>2020-11-13T16:30:08Z</dc:date>
    <item>
      <title>I need help to figure out how to implement a marginal effects model in sas PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/I-need-help-to-figure-out-how-to-implement-a-marginal-effects/m-p/698566#M33696</link>
      <description>&lt;P&gt;Hello SAS Experts,&lt;/P&gt;&lt;P&gt;I am running a cox proportional hazards model. I am running PHREG because I want to test if there is a significant interaction between TTO and a continuous covariate.&lt;BR /&gt;&lt;BR /&gt;My TTO has two levels (0 and 1)&lt;BR /&gt;Let the continuous covariate be "B"&lt;BR /&gt;&lt;BR /&gt;I run the following:&lt;BR /&gt;&lt;BR /&gt;proc phreg data = data;&lt;BR /&gt;class TTO;&lt;BR /&gt;model survivaltime*censored(0) = TTO B TTO*B&amp;nbsp; / ties=Efron;&lt;BR /&gt;id id;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PREG_TABLE_SAS_COMMUNITIES.jpg" style="width: 530px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/51623iE083DEC7113B4C40/image-size/large?v=v2&amp;amp;px=999" role="button" title="PREG_TABLE_SAS_COMMUNITIES.jpg" alt="PREG_TABLE_SAS_COMMUNITIES.jpg" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;As can be seen in the table above, the interaction TTO*B is not significant. Of course, some people are of the opinion that I should just drop the interaction because it is not significant and be done with it.&lt;/P&gt;&lt;P&gt;However, I read a recommendation that when the interaction is not significant, then "interpret your model using marginal effects in the same way as if the interaction were significant".&amp;nbsp;&amp;nbsp; How do you this? Or better yet, how do you implement a marginal effects model in sas PHREG? Can anyone direct me to a good source with examples?&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Marcel&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 02:16:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/I-need-help-to-figure-out-how-to-implement-a-marginal-effects/m-p/698566#M33696</guid>
      <dc:creator>marcel</dc:creator>
      <dc:date>2020-11-13T02:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: I need help to figure out how to implement a marginal effects model in sas PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/I-need-help-to-figure-out-how-to-implement-a-marginal-effects/m-p/698652#M33701</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/118515"&gt;@marcel&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would interpret that article as saying - look at the main effects least squares means (if both of the variables in the interaction are categorical).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The simple way of getting marginal means is to drop the interaction.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, what you have here is a bit trickier, as B is a continuous covariate.&amp;nbsp; The test of the interaction is whether the beta's for the two levels of TTO are identical.&amp;nbsp; Since you have no evidence that they are different, the parsimonious model would drop out the interaction.&amp;nbsp; If you keep the interaction (because a: it is significant or b; you have additional knowledge that the slopes are not the same from prior work), then when you compare lsmeans, you should do it at 3 levels of B, a low level, the mean level and a high level.&amp;nbsp; See Milliken and Johnson's&amp;nbsp;&lt;EM&gt;Analysis of Messy Data, vol. 3: Analysis of Covariance&lt;/EM&gt; for examples.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 13:53:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/I-need-help-to-figure-out-how-to-implement-a-marginal-effects/m-p/698652#M33701</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-11-13T13:53:45Z</dc:date>
    </item>
    <item>
      <title>SteveRe: I need help to figure out how to implement a marginal effects model in sas PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/I-need-help-to-figure-out-how-to-implement-a-marginal-effects/m-p/698703#M33706</link>
      <description>&lt;P&gt;Thank you, Steve. That is a point of start for me. I will check the reference you recommend.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Marcel&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 16:30:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/I-need-help-to-figure-out-how-to-implement-a-marginal-effects/m-p/698703#M33706</guid>
      <dc:creator>marcel</dc:creator>
      <dc:date>2020-11-13T16:30:08Z</dc:date>
    </item>
  </channel>
</rss>

