I've been trying to fit a mixture cure model with weights and get the following error:
Error in model.frame.default(formula = Surv(OStime, OSevent) ~ 1, data = list( :
variable lengths differ (found for '(weights)')
I have run the model without weights with no issue. And have tried setting the weights to a vector of 1s with length equal to the number of rows in the input data, but that gives the same error. Can you verify whether flexsurvcure works with user specified weights?
Hi,
I've been trying to fit a mixture cure model with weights and get the following error:
Error in model.frame.default(formula = Surv(OStime, OSevent) ~ 1, data = list( : variable lengths differ (found for '(weights)')
I have run the model without weights with no issue. And have tried setting the weights to a vector of 1s with length equal to the number of rows in the input data, but that gives the same error. Can you verify whether flexsurvcure works with user specified weights?
Thanks!