Displaying 1 result from an estimated 1 matches for "surdata".
Did you mean:
subdata
2011 Jun 13
1
Convert SAS code to R code about survival analysis
Hi, I am working on transforming a SAS code to R code.
It's about the survival analysis and the SAS code is as below:
--------------------------------------
proc lifetest data=surdata plot=(s);
time surv*censht(1);
strata educ;
title 'Day 1 homework';
run;
----------------------------------------
here is the data:
subject surv censht educ
1 78 1 1
2 70 1 0
3 60 0 1
4 50 1...