<?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: How to Get information From Proc LIFETEST and PHREG in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Get-information-From-Proc-LIFETEST-and-PHREG/m-p/953061#M47694</link>
    <description>&lt;P&gt;"&lt;SPAN&gt;If Adverse events occur, I was given CNSR =0; otherwise, it's 1."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So the "interesting" thing in survivial analysis is "Adverse events", the censored flag is 1 (the "interesting" thing not happened), therefore the following statement is right:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;time aval*cnsr(&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/FONT&gt;); 
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;'Survival'&amp;nbsp; Variable is the survival probability(a.k.a the&amp;nbsp;probability of&amp;nbsp; "interesting" thing not happened),&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I think it should be "Adverse Event Free Probability" (I am not familiar with concept of Free Probability).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"Probability of an Adverse Event&amp;nbsp; can happen" &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I think it should be Failure Probability, you could get this by the following code:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
    input USUBJID ARM AVAL CNSR;
    datalines;
1 1 1 1
2 1 2 0
3 1 10 1
4 2 5 1
5 2 6 0
6 2 8 1
7 2 10 0
8 2 11 0
9 1 12 1
10 2 13 1
11 2 15 1
12 1 10 0
13 1 18 1
14 2 19 0
15 2 21 1
16 1 23 1
17 1 5 1
18 2 25 1
;
run;
proc lifetest data=have  plots=survival(failure atrisk=5 to 15 by 5);;
strata arm;
time aval*cnsr(1); 
run;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1733794383980.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/102855i81A2B5DDA18A5E9D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1733794383980.png" alt="Ksharp_0-1733794383980.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, 10 Dec 2024 01:33:16 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2024-12-10T01:33:16Z</dc:date>
    <item>
      <title>How to Get information From Proc LIFETEST and PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Get-information-From-Proc-LIFETEST-and-PHREG/m-p/952904#M47685</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Thank you for your inputs and helps on this topic.&lt;/P&gt;
&lt;P&gt;I was able to run the proc lifetest and phreg but confused, which datasets need to be used to get the information since outputs produces so much information . I need to get the following information. I was providing dataset I have.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Create the original dataset */
*Information in data
AVAL -&amp;gt;Number of Days  after the Treatment that  Adverse Event Occurred"
CNSR-&amp;gt;  If the event occurred, then CNSR =0 otherwise, 1
ARM-&amp;gt; IND and Placebo;
data have;
    input USUBJID ARM AVAL CNSR;
    datalines;
1 1 1 1
2 1 2 0
3 1 10 1
4 2 5 1
5 2 6 0
6 2 8 1
7 2 10 0
8 2 11 0
9 1 12 1
10 2 13 1
11 2 15 1
12 1 10 0
13 1 18 1
14 2 19 0
15 2 21 1
16 1 23 1
17 1 5 1
18 2 25 1
;
run;

data have;
	set have;
	if arm = 1 the TRT = 'Placebo';
	if arm =2 then TRT = 'IND';
run;

** for Quartiles and estimates/ Not using any from Estimates data**
proc lifetest method=KM data=have   plots=none;*timelist=(5,10,15); 
strata arm;
time aval*cnsr(1); 
ods output 	productlimitestimates = estimates
			Quartiles = quart;
run;
** for HR and 95 %CI/ Not sure where to get P- value**;
proc phreg data=have;
    class arm (ref='2'); 
    model aval*cnsr(1) = arm  / risklimits ties=efron rl;
    hazardratio arm / diff=ref; 
    ods output  ParameterEstimates = hR;
run;

*** for  adverse event free probability and 95% CI at day 10**;
proc lifetest method=KM data=have   plots=none timelist=(5,10,15); 
strata arm;
time aval*cnsr(1); 
ods output 	productlimitestimates = estiTime;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;From PHREG: Cox Model&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;1 . Probability (IND Vs Placebo) - P-value&lt;/P&gt;
&lt;P&gt;2. Hazard Ratio (IND Vs Placebo)&lt;/P&gt;
&lt;P&gt;3 . 95% CI&amp;nbsp; (IND Vs Placebo)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;From PROC LIFETEST:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Quartiles:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;1. Q1 with 95%CI&lt;/P&gt;
&lt;P&gt;2. Q3 with 95% CI&lt;/P&gt;
&lt;P&gt;3. Median with 95% CI&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;From PROC LIFETEST:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Adverse Event Free probability at Day 10&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Dec 2024 22:28:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-Get-information-From-Proc-LIFETEST-and-PHREG/m-p/952904#M47685</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2024-12-08T22:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to Get information From Proc LIFETEST and PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Get-information-From-Proc-LIFETEST-and-PHREG/m-p/952912#M47686</link>
      <description>&lt;P&gt;I don't know much about quartile estimates from PROC LIFETEST, but for your PHREG question, you need to set ref='1' to get the HR for IND vs. placebo.&amp;nbsp; The way you currently have it has IND set as the ref - this is not what you want.&amp;nbsp; As for the p-value, it's just the thing in the parameter estimates output labeled "Pr &amp;gt; ChiSq".&amp;nbsp; In this case, you do NOT need the HAZARDRATIO statement.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="quickbluefish_0-1733710550970.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/102808i3DF36892AF7C9EFF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="quickbluefish_0-1733710550970.png" alt="quickbluefish_0-1733710550970.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the LIFETEST question about AE-free survival at day 10 - you can get this from the column labeled SURVIVAL in your output dataset (EstiTime) -- i.e., survival at day 10.&amp;nbsp; When I run your code, I get 68.57% for ARM 1 and 76.19% for ARM 2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2024 02:23:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-Get-information-From-Proc-LIFETEST-and-PHREG/m-p/952912#M47686</guid>
      <dc:creator>quickbluefish</dc:creator>
      <dc:date>2024-12-09T02:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to Get information From Proc LIFETEST and PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Get-information-From-Proc-LIFETEST-and-PHREG/m-p/952917#M47687</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;** for HR and 95 %CI/ Not sure where to get P- value**;
proc phreg data=have;
    class arm (ref='2'); 
    model aval*cnsr(1) = arm  / risklimits ties=efron rl;
    hazardratio arm / diff=ref; 
    ods output  ParameterEstimates = hR;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;There four way to get P-Value:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1)&lt;/P&gt;
&lt;PRE&gt;proc phreg data=have;
    class arm (ref='2')&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;/param=glm&lt;/STRONG&gt;&lt;/FONT&gt;; 
    model aval*cnsr(1) = arm  / risklimits ties=efron rl;
    hazardratio arm / diff=ref; 
    ods output  ParameterEstimates = hR;
run;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1733711319383.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/102809i3B8705F71C3B5695/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1733711319383.png" alt="Ksharp_0-1733711319383.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2)&lt;/P&gt;
&lt;PRE&gt;proc phreg data=have;
    class arm (ref='2')&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;/param=glm&lt;/STRONG&gt;&lt;/FONT&gt;; 
    model aval*cnsr(1) = arm  / risklimits ties=efron rl;
    hazardratio arm / diff=ref; 
    ods output  ParameterEstimates = hR;
	&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;estimate 'arm1 vs arm2' arm 1 -1/exp cl;&lt;/STRONG&gt;&lt;/FONT&gt;
/*	lsmeans arm/diff exp cl;*/
run;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_1-1733711675957.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/102810iACBDC126E1B64425/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_1-1733711675957.png" alt="Ksharp_1-1733711675957.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3)&lt;/P&gt;
&lt;PRE&gt;proc phreg data=have;
    class arm (ref='2')&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;/param=glm&lt;/FONT&gt;&lt;/STRONG&gt;; 
    model aval*cnsr(1) = arm  / risklimits ties=efron rl;
    hazardratio arm / diff=ref; 
    ods output  ParameterEstimates = hR;
/*	estimate 'arm1 vs arm2' arm 1 -1/exp cl;*/
	&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;lsmeans arm/diff exp cl;&lt;/FONT&gt;&lt;/STRONG&gt;
run;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_2-1733711795729.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/102811i52CCE2D608B24F3D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_2-1733711795729.png" alt="Ksharp_2-1733711795729.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4)&lt;/P&gt;
&lt;PRE&gt;proc phreg data=have;
    class arm (ref='2')/param=glm;  
    model aval*cnsr(1) = arm  / risklimits ties=efron rl;
    hazardratio arm / diff=ref; 
    ods output  ParameterEstimates = hR;
	&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;lsmestimate  arm 'arm1 vs arm2' 1 -1/exp cl;&lt;/STRONG&gt; &lt;/FONT&gt;
run;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_1-1733729616182.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/102814iE4959E2D8386E422/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_1-1733729616182.png" alt="Ksharp_1-1733729616182.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/*****************************************************************************/&lt;/P&gt;
&lt;PRE&gt;*** for  adverse event free probability and 95% CI at day 10**;
proc lifetest method=KM data=have&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt; outs=outs&lt;/STRONG&gt; &lt;/FONT&gt; plots=none timelist=(5,10,15); 
strata arm;
time aval*cnsr(1); 
ods output 	productlimitestimates = estiTime;
run;
proc sql;
create table temp as
select distinct arm,10 as aval from have;
quit;
data want;
 set outs temp;
 by arm aval;
run;
data want;
 set want;
 by arm;
 retain point lower upper;
 if first.arm then call missing(point, lower, upper) ;
 if not missing(SURVIVAL) then point=SURVIVAL;
 if not missing(SDF_LCL) then lower=SDF_LCL;
 if not missing(SDF_UCL) then upper=SDF_UCL;
run;
proc sql ;
select distinct aval, arm,point,lower,upper
 from want 
  where aval=10;
quit;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1733729542423.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/102813i7493574179488335/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1733729542423.png" alt="Ksharp_0-1733729542423.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>Mon, 09 Dec 2024 07:33:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-Get-information-From-Proc-LIFETEST-and-PHREG/m-p/952917#M47687</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-12-09T07:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to Get information From Proc LIFETEST and PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Get-information-From-Proc-LIFETEST-and-PHREG/m-p/953020#M47690</link>
      <description>&lt;P&gt;Thank you very much for your inputs.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2024 20:30:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-Get-information-From-Proc-LIFETEST-and-PHREG/m-p/953020#M47690</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2024-12-09T20:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to Get information From Proc LIFETEST and PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Get-information-From-Proc-LIFETEST-and-PHREG/m-p/953021#M47691</link>
      <description>&lt;P&gt;Thank you very much&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;for your detailed Response.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think I got 95% of what I wanted. However, I have questions regarding choosing which variable in Proc life test estimates. This is for my education, and I always read it, but I need to remember it.&lt;/P&gt;
&lt;P&gt;In my data, If Adverse events occur, I was given CNSR =0; otherwise, it's 1.&lt;/P&gt;
&lt;P&gt;When we run the proc life test, we get variables&amp;nbsp; 'SURVIVAL' and sometimes "FAILURE' ( depending on the code).&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;My question is in this Scenario:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;'Survival'&amp;nbsp; Variable indicates the&amp;nbsp; Adverse Event Free Probability or&amp;nbsp; Probability of an Adverse Event&amp;nbsp; can happen? because in some places we used to see "1- SURVIVAL"&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2024 20:37:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-Get-information-From-Proc-LIFETEST-and-PHREG/m-p/953021#M47691</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2024-12-09T20:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to Get information From Proc LIFETEST and PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Get-information-From-Proc-LIFETEST-and-PHREG/m-p/953023#M47692</link>
      <description>again, in PHREG, you need to set (ref='1') instead of (ref='2').  The way you have it is backwards.</description>
      <pubDate>Mon, 09 Dec 2024 20:47:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-Get-information-From-Proc-LIFETEST-and-PHREG/m-p/953023#M47692</guid>
      <dc:creator>quickbluefish</dc:creator>
      <dc:date>2024-12-09T20:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to Get information From Proc LIFETEST and PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Get-information-From-Proc-LIFETEST-and-PHREG/m-p/953051#M47693</link>
      <description>&lt;P&gt;Thanks, you are correct, I changed in my program, forgot to mention in the msg.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2024 22:44:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-Get-information-From-Proc-LIFETEST-and-PHREG/m-p/953051#M47693</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2024-12-09T22:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to Get information From Proc LIFETEST and PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Get-information-From-Proc-LIFETEST-and-PHREG/m-p/953061#M47694</link>
      <description>&lt;P&gt;"&lt;SPAN&gt;If Adverse events occur, I was given CNSR =0; otherwise, it's 1."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So the "interesting" thing in survivial analysis is "Adverse events", the censored flag is 1 (the "interesting" thing not happened), therefore the following statement is right:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;time aval*cnsr(&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/FONT&gt;); 
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;'Survival'&amp;nbsp; Variable is the survival probability(a.k.a the&amp;nbsp;probability of&amp;nbsp; "interesting" thing not happened),&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I think it should be "Adverse Event Free Probability" (I am not familiar with concept of Free Probability).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"Probability of an Adverse Event&amp;nbsp; can happen" &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I think it should be Failure Probability, you could get this by the following code:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
    input USUBJID ARM AVAL CNSR;
    datalines;
1 1 1 1
2 1 2 0
3 1 10 1
4 2 5 1
5 2 6 0
6 2 8 1
7 2 10 0
8 2 11 0
9 1 12 1
10 2 13 1
11 2 15 1
12 1 10 0
13 1 18 1
14 2 19 0
15 2 21 1
16 1 23 1
17 1 5 1
18 2 25 1
;
run;
proc lifetest data=have  plots=survival(failure atrisk=5 to 15 by 5);;
strata arm;
time aval*cnsr(1); 
run;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1733794383980.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/102855i81A2B5DDA18A5E9D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1733794383980.png" alt="Ksharp_0-1733794383980.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, 10 Dec 2024 01:33:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-Get-information-From-Proc-LIFETEST-and-PHREG/m-p/953061#M47694</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-12-10T01:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to Get information From Proc LIFETEST and PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Get-information-From-Proc-LIFETEST-and-PHREG/m-p/953311#M47703</link>
      <description>&lt;P&gt;Thank you for your explanation.&amp;nbsp; I think I got a better picture now.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 01:20:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-Get-information-From-Proc-LIFETEST-and-PHREG/m-p/953311#M47703</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2024-12-12T01:20:01Z</dc:date>
    </item>
  </channel>
</rss>

