Skip to content

Again: Flexsurvspline: initial value in 'vmmin' is not finite #199

@Lee-xli

Description

@Lee-xli

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:

Screenshot 2024-11-10 at 7 14 25 am

And I encountered the following error:

zero inits from xgb

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions