It would be a great enhancement to allow users to access additional optimizers, such as those wrapped by the optimx package, if it is available. This would open the door to a wider array of optimization methods and even enable users to compare the performance of multiple routines, which can be particularly useful for challenging models.
I understand the hesitation to introduce a hard dependency, but optimx could be included as a suggested package. This way, core functionality would remain unaffected for users who don’t need this feature. In my experience, while BFGS and other optim methods often perform adequately, they can struggle in certain scenarios where alternatives might succeed. Allowing access to these tools would enhance the versatility and robustness of flexsurv.
It would be a great enhancement to allow users to access additional optimizers, such as those wrapped by the
optimxpackage, if it is available. This would open the door to a wider array of optimization methods and even enable users to compare the performance of multiple routines, which can be particularly useful for challenging models.I understand the hesitation to introduce a hard dependency, but
optimxcould be included as a suggested package. This way, core functionality would remain unaffected for users who don’t need this feature. In my experience, while BFGS and other optim methods often perform adequately, they can struggle in certain scenarios where alternatives might succeed. Allowing access to these tools would enhance the versatility and robustness offlexsurv.