Usage
agreg.fit(x, y, strata, offset, init, control, weights, method, rownames)
coxph.fit(x, y, strata, offset, init, control, weights, method, rownames)
Arguments
x
Matix of predictors. This should not include an
intercept.
y
a Surv
object containing either 2 columns (coxph.fit)
or 3 columns (agreg.fit).
strata
a vector containing the stratification, or NULL
offset
optional offset vector
init
initial values for the coefficients
control
the result of a call to coxph.control
weights
optional vector of weights
method
method for hanling ties, one of "breslow" or "efron"
rownames
this is only needed for a NULL model, in which case it
contains the rownames (if any) of the original data.