aftreg(formula = formula(data), data = parent.frame(),
na.action = getOption("na.action"), dist = "weibull", init, shape = 0,
id, control = list(eps = 1e-08, maxiter = 20, trace = FALSE),
singular.ok = TRUE, model = FALSE, x = FALSE, y = TRUE, center = NULL)options()$na.action.exponential can be obtained by choosing "weibull"
in combination with shape = 1.eps (convergence
criterion), maxiter (maximum number of iterations), and
silent (logical, controlling amount of output). You can
change any component without mention the other(s).c("aftreg", "coxreg") with componentsNULL if not).print.aftreg doesn't work if
threeway or higher order interactions are present. Use
print.coxph in that case.survreg.
The model is
$$S(t; a, b, \beta, z) = S_0((t / \exp(b -
z\beta))^{\exp(a)})$$
where $S_0$ is some standardized survivor function.
The base-line parameters $a$ and $b$ are log shape and log
scale, respectively.coxreg, phregdata(mort)
aftreg(Surv(enter, exit, event) ~ ses, data = mort)Run the code above in your browser using DataLab