-
Notifications
You must be signed in to change notification settings - Fork 28
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
Again: Flexsurvspline: initial value in 'vmmin' is not finite #199
Comments
So you can successfully fit a model for the same outcome but with a different predictor? That is not surprising - the heuristics used to generate initial values depend jointly on the outcome and the predictors. If these heuristics fail, you can specify initial values explicitly through the |
Thank you very much! Having inits from the successful fit indeed fixed the issue. |
For the effects of covariates in a proportional hazards model, you could just fit a standard Cox model. For the |
Thank you very much again! |
Hi flexsurv,
Firstly, my apologies that this appears to be an old question, and I do not have a reprex example or a sharable dataset due to data-sharing agreements. The dataset has only four variables: treatment arm, linear predictor, status, and time. Total of 502 observations with 201 events.
The flexsurvspline command was:
And I encountered the following error:
I have reviewed past discussions and tried the following:
Unfortunately, all the above efforts failed.
What baffles me is that the error appears to be resolved by replacing the linear predictor variable with a different set of estimates (e.g., linear predictors from a different model). With this alternative linear predictor variable, the flexsurvspline function derived the same knot positions as before, but all gamma parameters now had non-zero initial values. How could this issue seemingly be resolved while the underlying survival information remained unchanged?
Could you please suggest areas where I might further investigate this issue?
Please let me know if my question requires any clarification.
Thank you very much in advance.
The text was updated successfully, but these errors were encountered: