<?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: proc phreg survival plot interaction term in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-phreg-survival-plot-interaction-term/m-p/946307#M47287</link>
    <description>&lt;P&gt;Thank you! So the data has subjects that are were in 1 of 2 treatments and were offered 1 of 2 reward types (2x2 design). Both variables are nominal categorical. Please see my code below, I am using the overlayed survival plot, currently defined by SURVIVAL=_ALL_/DIRADJ GROUP=TREATMENT, but really I need the group to be TREATMENT*REWARD so that I get four lines, each representing the four categories of treatment*reward? Thanks in advance for your help!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;PROC PHREG DATA=DATA PLOTS (OVERLAY)=SURVIVAL;&lt;BR /&gt;CLASS TREATMENT REWARD;&lt;BR /&gt;MODEL IS*IPF(0) = TREATMENT REWARD TREATMENT*REWARD BW / RISKLIMITS TIES=EFRON MAXITER=100;&lt;BR /&gt;BASELINE OUT=REWSOCISBASELINE COVARIATES=TMAZE.REWARDSOCIAL OUTDIFF=REWARDSOCIALISOUTDIFF LOGLOGS=REWARDSSOCIALISLLS SURVIVAL=_ALL_/DIRADJ GROUP=TREATMENT;&lt;BR /&gt;OUTPUT OUT=REWARDSOCIALISOUTPUT XBETA=REWARDSOCIALISXBETA STDXBETA=REWARDSOCIALISSTDERROR RESMART=REWARDSOCIALISMARTINGALERES RESDEV=REWARDSOCIALISDEVIANCERES RESSCH=REWARDSOCIALISSCHOENFELDIHE REWARDSOCIALISSCHOENFELDIHS REWARDSOCIALISSCHOENFELDPHE REWARDSOCIALISSCHOENFELDPHS DFBETA=REWARDSOCIALISDFBETA;&lt;BR /&gt;HAZARDRATIO TREATMENT;&lt;BR /&gt;HAZARDRATIO REWARD;&lt;BR /&gt;HAZARDRATIO BW;&lt;BR /&gt;ASSESS PH/RESAMPLE;&lt;BR /&gt;RUN;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Oct 2024 14:57:35 GMT</pubDate>
    <dc:creator>sas_user_0510</dc:creator>
    <dc:date>2024-10-04T14:57:35Z</dc:date>
    <item>
      <title>proc phreg survival plot interaction term</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-phreg-survival-plot-interaction-term/m-p/946176#M47285</link>
      <description>&lt;P&gt;Hiya,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know whether it is possible to generate a survival plot in PROC PHREG categorized by an interaction term?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2024 17:04:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-phreg-survival-plot-interaction-term/m-p/946176#M47285</guid>
      <dc:creator>sas_user_0510</dc:creator>
      <dc:date>2024-10-03T17:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: proc phreg survival plot interaction term</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-phreg-survival-plot-interaction-term/m-p/946188#M47286</link>
      <description>&lt;P&gt;Could post the code you are using for your model? And include a brief description of your data, which variables are categorical and how many levels and which are continuous. And describe what sort of plot you are contemplating since Phreg can create more than one type.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Without details this is very much a "maybe, it depends". An interaction term that involves a continuous variable for example is likely to take a bit more work to create categories.&lt;/P&gt;
&lt;P&gt;Very likely it may require creating output data sets, some massaging and use of another procedure such as Sgplot to create the actual graphs.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2024 18:53:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-phreg-survival-plot-interaction-term/m-p/946188#M47286</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-10-03T18:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: proc phreg survival plot interaction term</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-phreg-survival-plot-interaction-term/m-p/946307#M47287</link>
      <description>&lt;P&gt;Thank you! So the data has subjects that are were in 1 of 2 treatments and were offered 1 of 2 reward types (2x2 design). Both variables are nominal categorical. Please see my code below, I am using the overlayed survival plot, currently defined by SURVIVAL=_ALL_/DIRADJ GROUP=TREATMENT, but really I need the group to be TREATMENT*REWARD so that I get four lines, each representing the four categories of treatment*reward? Thanks in advance for your help!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;PROC PHREG DATA=DATA PLOTS (OVERLAY)=SURVIVAL;&lt;BR /&gt;CLASS TREATMENT REWARD;&lt;BR /&gt;MODEL IS*IPF(0) = TREATMENT REWARD TREATMENT*REWARD BW / RISKLIMITS TIES=EFRON MAXITER=100;&lt;BR /&gt;BASELINE OUT=REWSOCISBASELINE COVARIATES=TMAZE.REWARDSOCIAL OUTDIFF=REWARDSOCIALISOUTDIFF LOGLOGS=REWARDSSOCIALISLLS SURVIVAL=_ALL_/DIRADJ GROUP=TREATMENT;&lt;BR /&gt;OUTPUT OUT=REWARDSOCIALISOUTPUT XBETA=REWARDSOCIALISXBETA STDXBETA=REWARDSOCIALISSTDERROR RESMART=REWARDSOCIALISMARTINGALERES RESDEV=REWARDSOCIALISDEVIANCERES RESSCH=REWARDSOCIALISSCHOENFELDIHE REWARDSOCIALISSCHOENFELDIHS REWARDSOCIALISSCHOENFELDPHE REWARDSOCIALISSCHOENFELDPHS DFBETA=REWARDSOCIALISDFBETA;&lt;BR /&gt;HAZARDRATIO TREATMENT;&lt;BR /&gt;HAZARDRATIO REWARD;&lt;BR /&gt;HAZARDRATIO BW;&lt;BR /&gt;ASSESS PH/RESAMPLE;&lt;BR /&gt;RUN;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2024 14:57:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-phreg-survival-plot-interaction-term/m-p/946307#M47287</guid>
      <dc:creator>sas_user_0510</dc:creator>
      <dc:date>2024-10-04T14:57:35Z</dc:date>
    </item>
  </channel>
</rss>

