aftreg(formula = formula(data), data = parent.frame(),
na.action = getOption("na.action"), dist = "weibull", init, shape = 0,
id, param = c("lifeAcc", "lifeExp"),
control = list(eps = 1e-08, maxiter = 20, trace = FALSE),
singular.ok = TRUE, model = FALSE, x = FALSE, y = TRUE)
options()$na.action
.exponential
can be obtained by choosing "weibull"
in combination with shape = 1
.shape
is fixed.lifeAcc
uses the parametrization given in the vignette, while the
lifeExp
uses the same as in the survreg
function.eps
(convergence
criterion), maxiter
(maximum number of iterations), and
trace
(logical, debug output if TRUE
). You can
change any component without mention the other(s).c("aftreg", "coxreg")
with components
NULL
if not).survreg
, when param =
"lifeAcc"
. The result is then true acceleration of time.
Then 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 baseline parameters \(a\) and \(b\) are log shape and log
scale, respectively. This is for the default
parametrization. With the lifeExp
parametrization, some signs are
changed: $$b - z beta$$ is changed to $$b + z beta$$.
For the
Gompertz distribution, the base parametrization is canonical
, a
necessity for consistency with the shape/scale paradigm (this is new in 2.3).coxreg
, phreg
, link[survival]{survreg}
data(mort)
aftreg(Surv(enter, exit, event) ~ ses, param = "lifeExp", data = mort)
Run the code above in your browser using DataLab