I am getting:
Error in UseMethod("comp") :
no applicable method for 'comp' applied to an object of class "survfit"
This is my code:
library(survMisc)
fit = survfit(Surv(inftime, inf) ~ trt,data = burn)
comp(fit)$tests$lrTests
What is the possible issue?
Thanks.
I am getting:
Error in UseMethod("comp") :
no applicable method for 'comp' applied to an object of class "survfit"
This is my code:
library(survMisc)
fit = survfit(Surv(inftime, inf) ~ trt,data = burn)
comp(fit)$tests$lrTests
What is the possible issue?
Thanks.