You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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!
The text was updated successfully, but these errors were encountered: