-
Notifications
You must be signed in to change notification settings - Fork 28
Description
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:
- Investigated the time variable: no obvious outliers or implausible values were found.
- Tried different knot positions.
- Tried k value incrementally from 0 upwards. At k = 0 (Weibull model), the same error was encountered.
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.