<?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: Phreg: Setting the x-axis max to 60 months in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Phreg-Setting-the-x-axis-max-to-60-months/m-p/925494#M46020</link>
    <description>Did you try :&lt;BR /&gt;layout overlay / xaxisopts=(linearopts=(viewmin=XVIEWMIN viewmax=XVIEWMAX))&lt;BR /&gt;---&amp;gt;&lt;BR /&gt;layout overlay / xaxisopts=(linearopts=(viewmin=XVIEWMIN viewmax=60))</description>
    <pubDate>Wed, 24 Apr 2024 05:48:08 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2024-04-24T05:48:08Z</dc:date>
    <item>
      <title>Phreg: Setting the x-axis max to 60 months</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Phreg-Setting-the-x-axis-max-to-60-months/m-p/925365#M46011</link>
      <description>&lt;P&gt;This is my last hope.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to set the x-axis of my survival curve from 0 to 60 months but I am having an issue executing this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I set the x-axis max to 60 ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using SAS 9.4&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc template;&lt;BR /&gt;source Stat.Phreg.Graphics.Survival;&lt;BR /&gt;define statgraph Stat.PHReg.Graphics.Survival;&lt;BR /&gt;dynamic title1 title2 title3 title4 xviewMin xviewMax group groupIndex groupName plotCL plotHPD&lt;BR /&gt;transparency piecewise _byline_ _bytitle_ _byfootnote_;&lt;BR /&gt;mvar PHReg_Survival PHReg_Survival2;&lt;BR /&gt;BeginGraph;&lt;BR /&gt;if (EXISTS(PHREG_SURVIVAL))&lt;BR /&gt;entrytitle PHREG_SURVIVAL;&lt;BR /&gt;else&lt;BR /&gt;entrytitle TITLE1 TITLE3;&lt;BR /&gt;endif;&lt;BR /&gt;if (EXISTS(PHREG_SURVIVAL2))&lt;BR /&gt;entrytitle PHREG_SURVIVAL2;&lt;BR /&gt;else&lt;BR /&gt;entrytitle TITLE2 TITLE4 / textattrs=GRAPHVALUETEXT;&lt;BR /&gt;endif;&lt;BR /&gt;layout overlay / xaxisopts=(linearopts=(viewmin=XVIEWMIN viewmax=XVIEWMAX)) yaxisopts=(label=&lt;BR /&gt;"Survival Probability" shortlabel="Survival" linearopts=(viewmin=0 viewmax=1 tickvaluelist=(&lt;BR /&gt;0 .2 .4 .6 .8 1.0)));&lt;BR /&gt;if (PLOTCL)&lt;BR /&gt;bandplot LimitLower=LOWERSURVIVAL LimitUpper=UPPERSURVIVAL x=TIME / group=GROUP index=&lt;BR /&gt;GROUPINDEX modelname="Survival" datatransparency=transparency;&lt;BR /&gt;endif;&lt;BR /&gt;if (PLOTHPD)&lt;BR /&gt;bandplot LimitLower=LOWERHPDSURVIVAL LimitUpper=UPPERHPDSURVIVAL x=TIME / group=GROUP&lt;BR /&gt;index=GROUPINDEX modelname="Survival" datatransparency=transparency;&lt;BR /&gt;endif;&lt;BR /&gt;if (EXISTS(PIECEWISE))&lt;BR /&gt;seriesplot y=SURVIVAL x=TIME / group=GROUP index=GROUPINDEX name="Survival";&lt;BR /&gt;else&lt;BR /&gt;stepplot y=SURVIVAL x=TIME / group=GROUP index=GROUPINDEX name="Survival";&lt;BR /&gt;endif;&lt;BR /&gt;if (EXISTS(GROUP))&lt;BR /&gt;discretelegend "Survival" / location=outside title=GROUPNAME;&lt;BR /&gt;endif;&lt;BR /&gt;endlayout;&lt;BR /&gt;if (_BYTITLE_)&lt;BR /&gt;entrytitle _BYLINE_ / textattrs=GRAPHVALUETEXT;&lt;BR /&gt;else&lt;BR /&gt;if (_BYFOOTNOTE_)&lt;BR /&gt;entryfootnote halign=left _BYLINE_;&lt;BR /&gt;endif;&lt;BR /&gt;endif;&lt;BR /&gt;EndGraph;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ods graphics on;&lt;BR /&gt;/*Supplement Figure 2: Adjusted Overall Survival for Patients Starting with Local Therapy*/&lt;BR /&gt;%grtitle(path=Stat.Phreg.Graphics.Survival, options=display)&lt;BR /&gt;%let PHReg_Survival = ;&lt;/P&gt;&lt;P&gt;proc phreg data=combined_years_2_local_test plots(OVERLAY = BYROW) = (SURVIVAL);&lt;BR /&gt;class agegrp (ref='&amp;lt;65') sexvariable(ref='Male') race(ref='White') stage(ref='locali') registry(ref='san_fran')/param=ref;&lt;BR /&gt;model survival_time*death(0)=agegrp sexvariable race stage local_date_year registry/ rl;&lt;BR /&gt;strata local_date_year;&lt;/P&gt;&lt;P&gt;run;&lt;BR /&gt;ods graphics off;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current graph this code is producing:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="noye2_0-1713877333688.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95772i042F2B529B66E360/image-size/medium?v=v2&amp;amp;px=400" role="button" title="noye2_0-1713877333688.png" alt="noye2_0-1713877333688.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 13:03:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Phreg-Setting-the-x-axis-max-to-60-months/m-p/925365#M46011</guid>
      <dc:creator>noye2</dc:creator>
      <dc:date>2024-04-23T13:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Phreg: Setting the x-axis max to 60 months</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Phreg-Setting-the-x-axis-max-to-60-months/m-p/925494#M46020</link>
      <description>Did you try :&lt;BR /&gt;layout overlay / xaxisopts=(linearopts=(viewmin=XVIEWMIN viewmax=XVIEWMAX))&lt;BR /&gt;---&amp;gt;&lt;BR /&gt;layout overlay / xaxisopts=(linearopts=(viewmin=XVIEWMIN viewmax=60))</description>
      <pubDate>Wed, 24 Apr 2024 05:48:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Phreg-Setting-the-x-axis-max-to-60-months/m-p/925494#M46020</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-04-24T05:48:08Z</dc:date>
    </item>
  </channel>
</rss>

