search for: survift

Displaying 2 results from an estimated 2 matches for "survift".

Did you mean: survfit
2011 Sep 05
1
SAS code in R
...s. Can anyone help me to translate the SAS code above into R code so that I can check I am doing things correctly? I am using R version 2.9.2 on Windows XP Professional. I think it would begin as follows: library(cmprsk) fit1 <- coxph(Surv(withtime,wcens)~ sex+treat,data=pudat2) my.fit <- survift(fit1) summary(my.fit) Unfortunately, the estimates shown do not match those of SAS. Additionally, can you use survfit with crr? If not, any suggestions as to how I may obtain the necessary estimates in a competing risks setting? Thank you for any help you can give. Laura [[alternative HTML...
2007 May 07
1
Predicted Cox survival curves - factor coding problems..
The combination of survfit, coxph, and factors is getting confused. It is not smart enough to match a new data frame that contains a numeric for sitenew to a fit that contained that variable as a factor. (Perhaps it should be smart enough to at least die gracefully -- but it's not). The simple solution is to not use factors. site1 <- 1*(coxsnps$sitenew==1) site2 <-