Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with weights #18

Open
dylanmaciel opened this issue Aug 2, 2022 · 0 comments
Open

Problem with weights #18

dylanmaciel opened this issue Aug 2, 2022 · 0 comments

Comments

@dylanmaciel
Copy link

dylanmaciel commented Aug 2, 2022

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant