Finds the formula and shape whose simstudy Weibull curve,
S(t) = exp(-exp(formula) * t^(1 / shape)) with scale fixed at 1, passes
as closely as possible through the supplied points. The fit is a
least-squares fit of log(time) on log(-log(survival)), run with
L-BFGS-B, and the returned formula and shape can be handed straight to
define_survival() or survival_curve().
Value
A one-row base data.frame with the calibrated numeric formula and
shape, the optim() convergence code (always 0, since a
non-converged fit raises an error), and rmse, the root mean squared
residual on the log-time scale.