<?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 What is the best way to produce survival curves when modeling in proc phreg? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-best-way-to-produce-survival-curves-when-modeling-in/m-p/641816#M30689</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am attempting to do modeling in proc phreg by producing two models (a crude model and a fully adjusted model). I have two questions.&lt;/P&gt;&lt;P&gt;1) Does my code seem correct considering my objective?&lt;/P&gt;&lt;P&gt;2) What is the easiest/best way to produce survival curves for each model? I would like each model to have two lines (representing each of my two age groups).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Exposure = age (20-49 year olds, 50+ year olds)&lt;/P&gt;&lt;P&gt;Outcome = overall survival&lt;/P&gt;&lt;P&gt;Covariates (for the fully adjusted model) = sex, race, stage, primary_site, grade, Yost_quintile&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc phreg data = new2;
class age (ref='50+');
model Survival_months*SEERcausespecificdeathclassifi(0,8) = age / rl;
hazardratio age / DIFF=ALL;
run;

proc phreg data = new2;
class age (ref='50+')sex (ref='Male') race (ref='Non-Hispanic White')
   stage (ref='Localized') primary_site (ref='Proximal Colon') grade (ref='Grade I')
   Yost_quintile (ref='Group 5');
model Survival_months*SEERcausespecificdeathclassifi(0,8) = age sex race stage primary_site grade
   Yost_quintile / rl;
hazardratio age / DIFF=ALL;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Apr 2020 05:06:07 GMT</pubDate>
    <dc:creator>mkit8</dc:creator>
    <dc:date>2020-04-22T05:06:07Z</dc:date>
    <item>
      <title>What is the best way to produce survival curves when modeling in proc phreg?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-best-way-to-produce-survival-curves-when-modeling-in/m-p/641816#M30689</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am attempting to do modeling in proc phreg by producing two models (a crude model and a fully adjusted model). I have two questions.&lt;/P&gt;&lt;P&gt;1) Does my code seem correct considering my objective?&lt;/P&gt;&lt;P&gt;2) What is the easiest/best way to produce survival curves for each model? I would like each model to have two lines (representing each of my two age groups).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Exposure = age (20-49 year olds, 50+ year olds)&lt;/P&gt;&lt;P&gt;Outcome = overall survival&lt;/P&gt;&lt;P&gt;Covariates (for the fully adjusted model) = sex, race, stage, primary_site, grade, Yost_quintile&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc phreg data = new2;
class age (ref='50+');
model Survival_months*SEERcausespecificdeathclassifi(0,8) = age / rl;
hazardratio age / DIFF=ALL;
run;

proc phreg data = new2;
class age (ref='50+')sex (ref='Male') race (ref='Non-Hispanic White')
   stage (ref='Localized') primary_site (ref='Proximal Colon') grade (ref='Grade I')
   Yost_quintile (ref='Group 5');
model Survival_months*SEERcausespecificdeathclassifi(0,8) = age sex race stage primary_site grade
   Yost_quintile / rl;
hazardratio age / DIFF=ALL;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 05:06:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-best-way-to-produce-survival-curves-when-modeling-in/m-p/641816#M30689</guid>
      <dc:creator>mkit8</dc:creator>
      <dc:date>2020-04-22T05:06:07Z</dc:date>
    </item>
  </channel>
</rss>

