[R] Comparing survival curves with survdiff strata help

2008-12-05 Thread Richardson, Patrick
ExpeRts, I'm trying to compare three survival curves using the function survdiff in the survival package. Following is my code and corresponding error message. survdiff(Surv(st_months, status) ~ strata(BOR), data=mydata) Error in survdiff(Surv(st_months, status) ~ strata(BOR), data = mydata) :

[R] Comparing survival curves with survdiff strata help

2008-12-04 Thread Richardson, Patrick
ExpeRts, I'm trying to compare three survival curves using the function survdiff in the survival package. Following is my code and corresponding error message. survdiff(Surv(st_months, status) ~ strata(BOR), data=mydata) Error in survdiff(Surv(st_months, status) ~ strata(BOR), data = mydata) :