[R] SAS code in R

2011-09-06 Thread Terry Therneau
-- Begin included message /* Combinations of Risk Factors */ data test2; input sex treat; DATALINES; 0 0 1 0 0 1 1 1 ; run; /* Survival estimates for the above combinations */ proc phreg data = pudat2; model withtime*wcens(0) = sex treat /ties = efron; baseline out = surv2 survival = survival

[R] SAS code in R

2011-09-05 Thread Bonnett, Laura
rather than Cox model version (crr from cmprsk in R) however there is no pre-set routine for this in SAS. I am therefore keen to use R to obtain the survival estimates for both the overall outcome and the competing risks outcomes. Can anyone help me to translate the SAS code above into R code so