agreg.fit {survival} | R Documentation |
These are the the functions called by coxph that do the actual
computation.
In certain situations, e.g. a simulation, it may be advantageous to
call these directly rather than the usual coxph
call using
a model formula.
agreg.fit(x, y, strata, offset, init, control, weights, method, rownames) coxph.fit(x, y, strata, offset, init, control, weights, method, rownames)
x |
Matix of predictors. This should not include an intercept. |
y |
a |
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 |
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. |
This routine does no checking that arguments are the proper length or type. Only use it if you know what you are doing!
a list containing results of the fit
Terry Therneau