<?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 Customizing KM curve in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Customizing-KM-curve/m-p/682962#M206779</link>
    <description>&lt;P&gt;I am running the following code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data _null_;&lt;BR /&gt;%let url = //support.sas.com/documentation/onlinedoc/stat/ex_code/151;&lt;BR /&gt;infile "http:&amp;amp;url/templft.html" device=url;&lt;/P&gt;
&lt;P&gt;file 'macros.tmp';&lt;BR /&gt;retain pre 0;&lt;BR /&gt;input;&lt;BR /&gt;_infile_ = tranwrd(_infile_, '&amp;amp;amp;', '&amp;amp;');&lt;BR /&gt;_infile_ = tranwrd(_infile_, '&amp;amp;lt;' , '&amp;lt;');&lt;BR /&gt;if index(_infile_, '&amp;lt;/pre&amp;gt;') then pre = 0;&lt;BR /&gt;if pre then put _infile_;&lt;BR /&gt;if index(_infile_, '&amp;lt;pre&amp;gt;') then pre = 1;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;%inc 'macros.tmp' / nosource;&lt;BR /&gt;%ProvideSurvivalMacros /* variables available. */&lt;BR /&gt;%let LegendOpts = ;&lt;BR /&gt;%let ntitles = 1;&lt;BR /&gt;%let TitleText1 = &amp;amp;titletext0 " for " STRATUMID;&lt;BR /&gt;%let TitleText2 = &amp;amp;titletext0;&lt;BR /&gt;%let yOptions = linearopts=(viewmin=0.8 viewmax=1&lt;BR /&gt;tickvaluelist=(0.8 1.0)); &lt;BR /&gt;%let xOptions = label="Time to Implant Failure (in Months)"&lt;BR /&gt;linearopts=(viewmin=0 viewmax=36&lt;BR /&gt;tickvaluelist=(0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36));&lt;BR /&gt;%let GraphOpts = attrpriority=none&lt;BR /&gt;DataLinePatterns=(Solid ShortDash);&lt;BR /&gt;%let InsetOpts = autoalign=(BottomRight)border=true;&lt;BR /&gt;%let AtRiskOpts = display=(label) valueattrs=(size=7pt);&lt;BR /&gt;%let BandOpts = displayTail=false &amp;amp;groups modelname="Survival";&lt;BR /&gt;%CompileSurvivalTemplates /* Compile the templates with */&lt;BR /&gt;/* the new title. */&lt;/P&gt;
&lt;P&gt;ODS LISTING image_dpi=300 GPATH = 'C:\Users\gscar\Desktop\Actis\Tables' style=statistical;&lt;BR /&gt;ODS GRAPHICS / RESET IMAGENAME = "Actis Stem Survival" IMAGEFMT=tiff HEIGHT=5in WIDTH=7in &lt;BR /&gt;attrpriority=Color;&lt;BR /&gt;proc lifetest data = actis.consented plots=survival outsurv=actis.KM_curve alpha=0.05;&lt;BR /&gt;time TT_dod_rev_censor_mos *revised_deceased(0) ;*(1) is event time, (0) is censor time;&lt;BR /&gt;*strata ;&lt;BR /&gt;label TT_dod_rev_censor_mos = 'Time (in Mos) to Implant Failure';&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible to add HW confidence bands to the curve? I have tried adding (cb=hw) option but it has not worked. Thank you&lt;/P&gt;</description>
    <pubDate>Thu, 10 Sep 2020 15:21:48 GMT</pubDate>
    <dc:creator>GS2</dc:creator>
    <dc:date>2020-09-10T15:21:48Z</dc:date>
    <item>
      <title>Customizing KM curve</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Customizing-KM-curve/m-p/682962#M206779</link>
      <description>&lt;P&gt;I am running the following code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data _null_;&lt;BR /&gt;%let url = //support.sas.com/documentation/onlinedoc/stat/ex_code/151;&lt;BR /&gt;infile "http:&amp;amp;url/templft.html" device=url;&lt;/P&gt;
&lt;P&gt;file 'macros.tmp';&lt;BR /&gt;retain pre 0;&lt;BR /&gt;input;&lt;BR /&gt;_infile_ = tranwrd(_infile_, '&amp;amp;amp;', '&amp;amp;');&lt;BR /&gt;_infile_ = tranwrd(_infile_, '&amp;amp;lt;' , '&amp;lt;');&lt;BR /&gt;if index(_infile_, '&amp;lt;/pre&amp;gt;') then pre = 0;&lt;BR /&gt;if pre then put _infile_;&lt;BR /&gt;if index(_infile_, '&amp;lt;pre&amp;gt;') then pre = 1;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;%inc 'macros.tmp' / nosource;&lt;BR /&gt;%ProvideSurvivalMacros /* variables available. */&lt;BR /&gt;%let LegendOpts = ;&lt;BR /&gt;%let ntitles = 1;&lt;BR /&gt;%let TitleText1 = &amp;amp;titletext0 " for " STRATUMID;&lt;BR /&gt;%let TitleText2 = &amp;amp;titletext0;&lt;BR /&gt;%let yOptions = linearopts=(viewmin=0.8 viewmax=1&lt;BR /&gt;tickvaluelist=(0.8 1.0)); &lt;BR /&gt;%let xOptions = label="Time to Implant Failure (in Months)"&lt;BR /&gt;linearopts=(viewmin=0 viewmax=36&lt;BR /&gt;tickvaluelist=(0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36));&lt;BR /&gt;%let GraphOpts = attrpriority=none&lt;BR /&gt;DataLinePatterns=(Solid ShortDash);&lt;BR /&gt;%let InsetOpts = autoalign=(BottomRight)border=true;&lt;BR /&gt;%let AtRiskOpts = display=(label) valueattrs=(size=7pt);&lt;BR /&gt;%let BandOpts = displayTail=false &amp;amp;groups modelname="Survival";&lt;BR /&gt;%CompileSurvivalTemplates /* Compile the templates with */&lt;BR /&gt;/* the new title. */&lt;/P&gt;
&lt;P&gt;ODS LISTING image_dpi=300 GPATH = 'C:\Users\gscar\Desktop\Actis\Tables' style=statistical;&lt;BR /&gt;ODS GRAPHICS / RESET IMAGENAME = "Actis Stem Survival" IMAGEFMT=tiff HEIGHT=5in WIDTH=7in &lt;BR /&gt;attrpriority=Color;&lt;BR /&gt;proc lifetest data = actis.consented plots=survival outsurv=actis.KM_curve alpha=0.05;&lt;BR /&gt;time TT_dod_rev_censor_mos *revised_deceased(0) ;*(1) is event time, (0) is censor time;&lt;BR /&gt;*strata ;&lt;BR /&gt;label TT_dod_rev_censor_mos = 'Time (in Mos) to Implant Failure';&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible to add HW confidence bands to the curve? I have tried adding (cb=hw) option but it has not worked. Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 15:21:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Customizing-KM-curve/m-p/682962#M206779</guid>
      <dc:creator>GS2</dc:creator>
      <dc:date>2020-09-10T15:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing KM curve</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Customizing-KM-curve/m-p/682964#M206781</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Is it possible to add HW confidence bands to the curve? I have tried adding (cb=hw) option but it has not worked.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;That is the correct method for adding bands to your plot.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This example here (builds on prior) shows how to include it in your PROC code&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_kaplan_sect033.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_kaplan_sect033.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc lifetest data = actis.consented plots=survival(cw=hw) outsurv=actis.KM_curve alpha=0.05;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;Please try and format your code before posting, it's hard to even see your PROC in the current layout.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/194348"&gt;@GS2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am running the following code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data _null_;&lt;BR /&gt;%let url = //support.sas.com/documentation/onlinedoc/stat/ex_code/151;&lt;BR /&gt;infile "http:&amp;amp;url/templft.html" device=url;&lt;/P&gt;
&lt;P&gt;file 'macros.tmp';&lt;BR /&gt;retain pre 0;&lt;BR /&gt;input;&lt;BR /&gt;_infile_ = tranwrd(_infile_, '&amp;amp;amp;', '&amp;amp;');&lt;BR /&gt;_infile_ = tranwrd(_infile_, '&amp;amp;lt;' , '&amp;lt;');&lt;BR /&gt;if index(_infile_, '&amp;lt;/pre&amp;gt;') then pre = 0;&lt;BR /&gt;if pre then put _infile_;&lt;BR /&gt;if index(_infile_, '&amp;lt;pre&amp;gt;') then pre = 1;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;%inc 'macros.tmp' / nosource;&lt;BR /&gt;%ProvideSurvivalMacros /* variables available. */&lt;BR /&gt;%let LegendOpts = ;&lt;BR /&gt;%let ntitles = 1;&lt;BR /&gt;%let TitleText1 = &amp;amp;titletext0 " for " STRATUMID;&lt;BR /&gt;%let TitleText2 = &amp;amp;titletext0;&lt;BR /&gt;%let yOptions = linearopts=(viewmin=0.8 viewmax=1&lt;BR /&gt;tickvaluelist=(0.8 1.0)); &lt;BR /&gt;%let xOptions = label="Time to Implant Failure (in Months)"&lt;BR /&gt;linearopts=(viewmin=0 viewmax=36&lt;BR /&gt;tickvaluelist=(0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36));&lt;BR /&gt;%let GraphOpts = attrpriority=none&lt;BR /&gt;DataLinePatterns=(Solid ShortDash);&lt;BR /&gt;%let InsetOpts = autoalign=(BottomRight)border=true;&lt;BR /&gt;%let AtRiskOpts = display=(label) valueattrs=(size=7pt);&lt;BR /&gt;%let BandOpts = displayTail=false &amp;amp;groups modelname="Survival";&lt;BR /&gt;%CompileSurvivalTemplates /* Compile the templates with */&lt;BR /&gt;/* the new title. */&lt;/P&gt;
&lt;P&gt;ODS LISTING image_dpi=300 GPATH = 'C:\Users\gscar\Desktop\Actis\Tables' style=statistical;&lt;BR /&gt;ODS GRAPHICS / RESET IMAGENAME = "Actis Stem Survival" IMAGEFMT=tiff HEIGHT=5in WIDTH=7in &lt;BR /&gt;attrpriority=Color;&lt;BR /&gt;proc lifetest data = actis.consented plots=survival outsurv=actis.KM_curve alpha=0.05;&lt;BR /&gt;time TT_dod_rev_censor_mos *revised_deceased(0) ;*(1) is event time, (0) is censor time;&lt;BR /&gt;*strata ;&lt;BR /&gt;label TT_dod_rev_censor_mos = 'Time (in Mos) to Implant Failure';&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible to add HW confidence bands to the curve? I have tried adding (cb=hw) option but it has not worked. Thank you&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 15:28:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Customizing-KM-curve/m-p/682964#M206781</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-09-10T15:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing KM curve</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Customizing-KM-curve/m-p/682969#M206785</link>
      <description>When I run that code I get the following note in the log and the confidence bands do not show on the graph. It indicates in the legend they are there but does not show on the graph. &lt;BR /&gt;&lt;BR /&gt;NOTE: The LOGLOG transform is used to compute the confidence limits for the quartiles of the&lt;BR /&gt;      survivor distribution and the confidence limit for the survivor function. To suppress using&lt;BR /&gt;      this transform, specify CONFTYPE=LINEAR in the PROC LIFETEST statement.&lt;BR /&gt;WARNING: HTML4 destination does not support TIFF images. Using the default static format.&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Sep 2020 15:35:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Customizing-KM-curve/m-p/682969#M206785</guid>
      <dc:creator>GS2</dc:creator>
      <dc:date>2020-09-10T15:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing KM curve</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Customizing-KM-curve/m-p/682979#M206790</link>
      <description>&lt;P&gt;&lt;STRONG&gt;WARNING: HTML4 destination does not support TIFF images. Using the default static format.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You set the output to TIFF format:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ODS GRAPHICS / RESET IMAGENAME = "Actis Stem Survival"&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt; IMAGEFMT=tiff&lt;/STRONG&gt; &lt;/FONT&gt;HEIGHT=5in WIDTH=7in&lt;BR /&gt;attrpriority=Color;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Change that to a different file format and it should be fine, see the list of valid options here:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://documentation.sas.com/?docsetId=odsproc&amp;amp;docsetTarget=p0kroq43yu0lspn16hk1u4c65lti.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n1t73d1kv8sjwjn1npcr1qv0vnkf"&gt;https://documentation.sas.com/?docsetId=odsproc&amp;amp;docsetTarget=p0kroq43yu0lspn16hk1u4c65lti.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n1t73d1kv8sjwjn1npcr1qv0vnkf&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/194348"&gt;@GS2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;When I run that code I get the following note in the log and the confidence bands do not show on the graph. It indicates in the legend they are there but does not show on the graph. &lt;BR /&gt;&lt;BR /&gt;NOTE: The LOGLOG transform is used to compute the confidence limits for the quartiles of the&lt;BR /&gt;survivor distribution and the confidence limit for the survivor function. To suppress using&lt;BR /&gt;this transform, specify CONFTYPE=LINEAR in the PROC LIFETEST statement.&lt;BR /&gt;WARNING: HTML4 destination does not support TIFF images. Using the default static format.&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 16:00:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Customizing-KM-curve/m-p/682979#M206790</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-09-10T16:00:26Z</dc:date>
    </item>
  </channel>
</rss>

