jrdnmdhl / flexsurvcure

Parametric cure models for flexsurvreg
16 stars 7 forks source link

Problem with weights #18

Open dylanmaciel opened 2 years ago

dylanmaciel commented 2 years ago

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!