add_ci.survreg
calculates confidence intervals for the mean
survival time of several accelerated failure time (AFT) models
including exponential, lognormal, weibull, and loglogistic
models. AFT models must be fit with the survreg
function in
the survival
package. Confidence intervals are formed
parametrically via the Delta method.
add_ci.survreg
will compute confidence intervals for the
following mean survival time point estimates:
Exponential: \(E[Y|X] = \exp{X\beta}\)
Weibull: \(E[Y|X] = \exp{X\beta}\Gamma(1 + \sigma)\)
Lognormal: \(E[Y|X] = \exp{X\beta + \frac{\sigma^2}{2}}\)
Loglogistic: \(E[Y|X] = \exp{X\beta}\Gamma(1 + \sigma)(1 - \sigma)\)
Traditionally, survival time predictions are made with the median
survival time. For forming confidence intervals for the median
survival time (or any quantile of the survival time distribution),
see add_quantile.survreg
.
Note: The expected survival time of a loglogistic model with scale
>= 1 does not exist. Otherwise, expected survival times exist for
each of the four AFT models considered in add.ci_survreg
.
Note: Due to a limitation, the Surv
object must be specified in
survreg
function call. See the examples section for one way
to do this.
Note: add_ci.survreg
cannot inspect the convergence of
fit
. Poor maximum likelihood estimates will result in poor
confidence intervals. Inspect any warning messages given from
survreg
.