coxaalen(formula, data = parent.frame(), subset, init = NULL,
formula.timereg = NULL, init.timereg = FALSE, control, ...)response ~ terms, where
response is an object returned by the
Surv function and terms contains at
least one multiplicative tformula and formula.timereg.data should be used
in the fit. All observations are included by default.coef and basehaz. The
coef element should be a scalar or vector specifying the
initial values of the multiplicative regression coefficient. If
init = NULL or cox.aalen
function using right-censored observations. Here the shorthand
~ .init should be overrided by
estimates based on the cox.aalen fit to the
first model in formula.timereg.coxaalen.control. This defaults to
coxaalen.control().coxaalen.control."coxinterval" and "coxaalen",
which is a list with the following components.coxaalen.p vector of regression coefficients.p by p covariance matrix of the regression
coefficients.cox.aalen fit to any models specified by
the formula.timereg argument. If formula.timereg is a
list of formula objects, fit.timereg is an unnamed list
following the same order."na.action" attribute of the model frame.coxaalen.control.formula. This component is returned only if the
coxaalen.control argument data is true.formula argument can be expressed
as Surv(, ] is the censoring interval for
the survival time. Following the type = "interval2" censoring for the
Surv function, we use the convention that any
right-censoring times are provided in the variable
and is set to the NA value. Terms in formula have either time-varying additive effects on
the survival hazard as in Aalen's additive regression model, or fixed
multiplicative effects as in the Cox model. Multiplicative terms are
distinguished by applying prop function to each corresponding variable.
coxaalen depends on libraries that are loaded only if
coxinterval is installed from source on a system with
Martinussen, T. and Scheike, T. H. (2006) Dynamic Regression Models for Survival Data. New York: Springer.
Scheike, T. H. and Zhang, M.-J. (2002)
cox.aalen, prop,
Surv# Fit a Cox model to the breast cosmesis dataset
if (is.loaded("coxaalen", "coxinterval")) {
fit <- coxaalen(Surv(left, right, type = "interval2") ~ prop(treat),
data = cosmesis, init.timereg = TRUE,
formula.timereg = list(Surv(pmax(left, right, na.rm = TRUE),
!is.na(right)) ~ .))
summary(fit)
}Run the code above in your browser using DataLab