\(\log T = X\beta + \sigma W\), with \(W\) standard extreme value
(Weibull; exponential fixes \(\sigma = 1\)), normal (lognormal) or
logistic (loglogistic), fitted by maximum likelihood with right
censoring: events contribute \(\log f(w) - \log\sigma - \log t\),
censored units \(\log S(w)\), \(w = (\log t - X\beta)/\sigma\).
The optimum is found with analytic gradients (BFGS) and polished by
Newton steps on the analytic Hessian; the covariance is the inverse observed information in
\((\beta, \log\sigma)\), as survival::survreg reports it.
Usage
morie_aft(
time,
event,
X = NULL,
dist = c("weibull", "lognormal", "loglogistic", "exponential")
)Value
list with coefficients (intercept first), scale,
loglik, vcov (of \(\beta\) and \(\log\sigma\)),
dist, n, n_events.
