<?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 Kaplan Meier for left-censored data in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Kaplan-Meier-for-left-censored-data/m-p/553631#M27546</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I study data non detects and different methods for handling these data. I would like obtain the mean using Kaplan Meier method, but my data are left censored and not right censored. So, I found a code to estimate the mean, but when I compare the result of mean with a function in R for non detect data (package NADA, function cenfit), I don't find again the result. Do you think that this code is correct to calculate the mean ? Or, do you know a code to obtain the mean with Kaplan Meier method for left-censored data ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;```&amp;nbsp;&lt;/P&gt;&lt;P&gt;/**Put data to right censored**/&lt;/P&gt;&lt;P&gt;data KM;&lt;BR /&gt;if _N_=1 then set Max (keep = MAXC);&lt;BR /&gt;SET data.savona;&lt;BR /&gt;value_censure_droite = MAXC - Concentration;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/**Estimator KM&amp;nbsp; : censored=1 if data censored and 0 if data observed**/&lt;BR /&gt;proc lifetest data=KM outsurv=out_km method=KM ;&lt;BR /&gt;time value_censure_droite*censored(1);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sort data=out_km;&lt;BR /&gt;by SURVIVAL;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data out_km1;&lt;BR /&gt;if _N_=1 then set MAX;&lt;BR /&gt;set out_km;&lt;BR /&gt;value_initiale = MAXC-value_censure_droite;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if _CENSOR_ IN (0,.);&lt;BR /&gt;DENS=DIF(SURVIVAL);&amp;nbsp;&lt;/P&gt;&lt;P&gt;if _N_ = 1 then DENS = SURVIVAL;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;XX=LAG(value_initiale);&lt;BR /&gt;if _N_ = 1 then XX=0;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;MPROD = XX*DENS;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC MEANS DATA=out_km1 noprint;&lt;BR /&gt;VAR MPROD;&lt;BR /&gt;OUTPUT OUT=MMM SUM=MEAN;&amp;nbsp;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;Thanks for your help !&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PS : When I run the proc lifetest, I have this note "The mean survival time and its standard error were underestimated because the largest observation was censored and the estimation was restricted to the largest event time."&lt;/P&gt;</description>
    <pubDate>Wed, 24 Apr 2019 13:19:57 GMT</pubDate>
    <dc:creator>Clemence</dc:creator>
    <dc:date>2019-04-24T13:19:57Z</dc:date>
    <item>
      <title>Kaplan Meier for left-censored data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Kaplan-Meier-for-left-censored-data/m-p/553631#M27546</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I study data non detects and different methods for handling these data. I would like obtain the mean using Kaplan Meier method, but my data are left censored and not right censored. So, I found a code to estimate the mean, but when I compare the result of mean with a function in R for non detect data (package NADA, function cenfit), I don't find again the result. Do you think that this code is correct to calculate the mean ? Or, do you know a code to obtain the mean with Kaplan Meier method for left-censored data ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;```&amp;nbsp;&lt;/P&gt;&lt;P&gt;/**Put data to right censored**/&lt;/P&gt;&lt;P&gt;data KM;&lt;BR /&gt;if _N_=1 then set Max (keep = MAXC);&lt;BR /&gt;SET data.savona;&lt;BR /&gt;value_censure_droite = MAXC - Concentration;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/**Estimator KM&amp;nbsp; : censored=1 if data censored and 0 if data observed**/&lt;BR /&gt;proc lifetest data=KM outsurv=out_km method=KM ;&lt;BR /&gt;time value_censure_droite*censored(1);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sort data=out_km;&lt;BR /&gt;by SURVIVAL;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data out_km1;&lt;BR /&gt;if _N_=1 then set MAX;&lt;BR /&gt;set out_km;&lt;BR /&gt;value_initiale = MAXC-value_censure_droite;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if _CENSOR_ IN (0,.);&lt;BR /&gt;DENS=DIF(SURVIVAL);&amp;nbsp;&lt;/P&gt;&lt;P&gt;if _N_ = 1 then DENS = SURVIVAL;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;XX=LAG(value_initiale);&lt;BR /&gt;if _N_ = 1 then XX=0;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;MPROD = XX*DENS;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC MEANS DATA=out_km1 noprint;&lt;BR /&gt;VAR MPROD;&lt;BR /&gt;OUTPUT OUT=MMM SUM=MEAN;&amp;nbsp;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;Thanks for your help !&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PS : When I run the proc lifetest, I have this note "The mean survival time and its standard error were underestimated because the largest observation was censored and the estimation was restricted to the largest event time."&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 13:19:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Kaplan-Meier-for-left-censored-data/m-p/553631#M27546</guid>
      <dc:creator>Clemence</dc:creator>
      <dc:date>2019-04-24T13:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Kaplan Meier for left-censored data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Kaplan-Meier-for-left-censored-data/m-p/570860#M28089</link>
      <description>&lt;P&gt;Nobody have a response ? It's for my internship .&amp;nbsp; Thanks !&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 09:07:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Kaplan-Meier-for-left-censored-data/m-p/570860#M28089</guid>
      <dc:creator>Clemence</dc:creator>
      <dc:date>2019-07-03T09:07:44Z</dc:date>
    </item>
  </channel>
</rss>

