search for: rptsurv

Displaying 1 result from an estimated 1 matches for "rptsurv".

Did you mean: relsurv
2007 Apr 29
2
how to code the censor variable for "survfit"
...able of time to event (or time to censoring) and the variable of censor indicator. For the indicator variable, it was coded as 0 and 1. 0 represents right censor, 1 means event of interest. Now I try to use "survfit" in the package of "survival". I wrote the following code: > rptsurv <- survfit(surv(time,censor)~1,data=x) Before I run the code, I am concerned with my 0/1 coding to the censor indicator because I did not see any argument in the syntax of "survfit", which may tell the program that value 1 means event. I checked the documentations and R-help archive,...