<?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 lifetest- Left vs. NumberAtRisk vs. Atrisk in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-lifetest-Left-vs-NumberAtRisk-vs-Atrisk/m-p/421096#M22153</link>
    <description>&lt;P&gt;Can you be more specific about the difference you are concerned about?&amp;nbsp; The only significant difference I see are the observations added by&amp;nbsp;&lt;SPAN&gt;survival&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;atrisk&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;0&lt;/SPAN&gt;&lt;SPAN&gt; to &lt;/SPAN&gt;&lt;SPAN class="token number"&gt;10&lt;/SPAN&gt; &lt;SPAN class="token statement"&gt;by&lt;/SPAN&gt; &lt;SPAN class="token number"&gt;2&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;) and the way atrisk is handled for observations with tied WEEK values 6.28571, 8.42857 etc.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LEFT is the number of observations left.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Dec 2017 06:47:53 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2017-12-14T06:47:53Z</dc:date>
    <item>
      <title>proc lifetest- Left vs. NumberAtRisk vs. Atrisk</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-lifetest-Left-vs-NumberAtRisk-vs-Atrisk/m-p/421063#M22148</link>
      <description>&lt;P&gt;Dear, I met an issue in Proc Lifetest that confused me for a long time. I want to create&amp;nbsp;the survival plot with GTL which need the survival rate and the number at risk.&lt;/P&gt;&lt;P&gt;But for number at risk, there are two versions, one is the NumberAtRisk in ProductLimitEstimate, the other is the AtRisk in&amp;nbsp;survivalplot. I know we should use the AtRisk in survivalplot, but I want to know why they are different? &amp;nbsp;And what's the difference between NumberAtRisk and Left in ProductLimitEstimates?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In &lt;STRONG&gt;ProductLimitEstimates&lt;/STRONG&gt; dataset, what's the difference with &lt;STRONG&gt;NumberAtRisk&lt;/STRONG&gt; and &lt;STRONG&gt;Left&lt;/STRONG&gt;?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc lifetest data=adsl method=km alpha=0.05 atrisk;
	time week*lvcens(1);
	strata armn/*/test=logrank adjust=sidak*/;
	ods output ProductLimitEstimates=ple;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17217i1E55A7E1529522E3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;And if we use the default &lt;STRONG&gt;survivalplot&lt;/STRONG&gt; data,&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on;
ods output survivalplot=plotdata;
proc lifetest data=adsl plots=survival(atrisk=0 to 10 by 2);
	time week*lvcens(1);
	strata armn/*/test=logrank adjust=sidak*/;
		ods output ProductLimitEstimates=ple;
run;
ods graphics off;&lt;/CODE&gt;&lt;/PRE&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17218i2D66927916000C68/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.PNG" alt="Capture2.PNG" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 03:02:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-lifetest-Left-vs-NumberAtRisk-vs-Atrisk/m-p/421063#M22148</guid>
      <dc:creator>Juanjuan</dc:creator>
      <dc:date>2017-12-14T03:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: proc lifetest- Left vs. NumberAtRisk vs. Atrisk</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-lifetest-Left-vs-NumberAtRisk-vs-Atrisk/m-p/421096#M22153</link>
      <description>&lt;P&gt;Can you be more specific about the difference you are concerned about?&amp;nbsp; The only significant difference I see are the observations added by&amp;nbsp;&lt;SPAN&gt;survival&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;atrisk&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;0&lt;/SPAN&gt;&lt;SPAN&gt; to &lt;/SPAN&gt;&lt;SPAN class="token number"&gt;10&lt;/SPAN&gt; &lt;SPAN class="token statement"&gt;by&lt;/SPAN&gt; &lt;SPAN class="token number"&gt;2&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;) and the way atrisk is handled for observations with tied WEEK values 6.28571, 8.42857 etc.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LEFT is the number of observations left.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 06:47:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-lifetest-Left-vs-NumberAtRisk-vs-Atrisk/m-p/421096#M22153</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2017-12-14T06:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: proc lifetest- Left vs. NumberAtRisk vs. Atrisk</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-lifetest-Left-vs-NumberAtRisk-vs-Atrisk/m-p/421098#M22154</link>
      <description>Thanks for your response.&lt;BR /&gt;&lt;BR /&gt;So the difference between NumberAtRisk and Atrisk are:&lt;BR /&gt;&lt;BR /&gt;l Observations with tied WEEK values 6.28571, 8.42857 etc.(I know this difference).&lt;BR /&gt;&lt;BR /&gt;l Observations added by survival(atrisk=0 to 10 by 2): I'm confused with this difference. I'm confused the rule to impute Atrisk for For the added week 4,6,10 which was not in NumberAtrisk.&lt;BR /&gt;&lt;BR /&gt;Take Week4 for example, week4 is between week=2.42857/NumberAtRisk=15 and week=4.42857/ NumberAtRisk=14, so we should impute week=4 by 14 because of week=4 is closer to week=4.42857?&lt;BR /&gt;&lt;BR /&gt;And how to handle with week=10?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[cid:image001.png@01D374ED.FE2F4BE0]&lt;BR /&gt;[cid:image002.png@01D374ED.FE2F4BE0]&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Dec 2017 07:13:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-lifetest-Left-vs-NumberAtRisk-vs-Atrisk/m-p/421098#M22154</guid>
      <dc:creator>Juanjuan</dc:creator>
      <dc:date>2017-12-14T07:13:10Z</dc:date>
    </item>
  </channel>
</rss>

