search for: lifetest

Displaying 4 results from an estimated 4 matches for "lifetest".

Did you mean: libtest
2007 Apr 29
2
how to code the censor variable for "survfit"
...ain. Would you please kindly tell me how "survfit" treats censor variables? In 0/1 coding, is it the default that 1 means event and 0 means right censor? What if the censor was coded as 2 or 3 instead of 0 or 1? I means how the "survfit" knows the difference. In SAS, if a "lifetest" procedure (similar to survfit) is performed, there is an argument specifying which value in the censor variable is treated as event. I know I could just compare the results from R and from SAS to see the difference. However, I really want to know exactly how "survfit" deals with th...
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...
2004 Jul 04
2
smooth non cumulative baseline hazard in Cox model
...France Grenoble - France ------------ SMOOTH Macro (SAS) ------------ %macro smooth (data=_last_, time=, width=, survival=survival); /********************************************************************* MACRO SMOOTH produces graphs of smoothed hazard functions using output from either PROC LIFETEST or PROC PHREG. With PROC LIFETEST, it uses the data set produced by the OUTSURV option in the PROC statement. With PROC PHREG, it uses the data set produced by the BASELINE statement. SMOOTH employs a kernel smoothing method described by H. Ramlau-Hansen (1983), "Smoothing Counting Process...
2012 Apr 13
3
Kaplan Meier analysis: 95% CI wider in R than in SAS
...s difference? ? My R code looks like: ? survfrm <- Surv(progression_months_landmark_14,progression==1) ~ pr_rg_landmark_14 survobj <- survfit(survfrm, data=Survival) survlrk <- survdiff(survfrm, data=Survival) summary(survobj) print(survobj) print(survlrk) ? My SAS code looks like: ? proc lifetest data=survival; strata pr_rg_landmark_14; time progression_months_landmark_14 * progression(0); run; Thought maybe the difference could have something to do with the strata statement in the SAS code not being translated properly into R. Tried changing my R code to make pr_rg_landmark_14 a strata bu...