<?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 stratum in proc lifetest in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/stratum-in-proc-lifetest/m-p/545661#M74320</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using sas 9.4 and am trying to make a Kaplan Meier curve.&amp;nbsp; Below is my code. The error message that I get is that the variable Group is not found. However, I have the variable Group in output from a proc freq step just before running proc lifetest. It is a numeric variable 0, 1, 2 with a few missing. Why doesn't the strata step recognize my variable Group?&amp;nbsp; Does the strata variable need to be character variable or some other specification to be recognized?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on;
proc lifetest data=data plots=survival (cb=hw atrisk(outside(0.15)));
   time survt * status(0);
   strata Group / order=internal test=logrank; 
run;
ods graphics off;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Laura&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Mar 2019 00:21:00 GMT</pubDate>
    <dc:creator>lmyers2</dc:creator>
    <dc:date>2019-03-25T00:21:00Z</dc:date>
    <item>
      <title>stratum in proc lifetest</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/stratum-in-proc-lifetest/m-p/545661#M74320</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using sas 9.4 and am trying to make a Kaplan Meier curve.&amp;nbsp; Below is my code. The error message that I get is that the variable Group is not found. However, I have the variable Group in output from a proc freq step just before running proc lifetest. It is a numeric variable 0, 1, 2 with a few missing. Why doesn't the strata step recognize my variable Group?&amp;nbsp; Does the strata variable need to be character variable or some other specification to be recognized?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on;
proc lifetest data=data plots=survival (cb=hw atrisk(outside(0.15)));
   time survt * status(0);
   strata Group / order=internal test=logrank; 
run;
ods graphics off;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Laura&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 00:21:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/stratum-in-proc-lifetest/m-p/545661#M74320</guid>
      <dc:creator>lmyers2</dc:creator>
      <dc:date>2019-03-25T00:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: stratum in proc lifetest</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/stratum-in-proc-lifetest/m-p/545784#M74324</link>
      <description>&lt;P&gt;Did you merge the results of your PROC FREQ statement into the DATA data set?&amp;nbsp; To make sure the data set has the GROUP variable, run&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc contents data=data short varnum;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and post the results.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 12:53:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/stratum-in-proc-lifetest/m-p/545784#M74324</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-03-25T12:53:09Z</dc:date>
    </item>
  </channel>
</rss>

