Function that fits Cox proportional hazards models
fit_cox(
x,
y,
strata,
weights,
offset,
control,
method,
rownames,
nocenter,
fast = TRUE
)
A list with the following components:
logl
: the log likelihood of the fitted model.
coefficients
: regression coefficients.
df
: number of parameters (degrees of freedom).
sse
: residual sum of squares (not used).
fit
: the fitted model object.
a matrix of predictors excluding intercept with nobs observations.
a Surv
object.
passed to survival::coxph.fit()
.
a numeric vector of length nobs of 'prior weights' to be used in the fitting process.
a numeric vector of length nobs of of a priori known component to be included in the linear predictor during fitting.
a character string specifying the method for tie handling.
See survival::coxph()
.
a logical which determines how the model is fitted. The default
TRUE
uses fast fitting routines (i.e. survival::coxph.fit()
), while
FALSE
uses the normal fitting routines (survival::coxph()
) (used for
the final output of mfp2
).