fit_cox {mfp2} | R Documentation |
Function that fits Cox proportional hazards models
Description
Function that fits Cox proportional hazards models
Usage
fit_cox(
x,
y,
strata,
weights,
offset,
control,
method,
rownames,
nocenter,
fast = TRUE
)
Arguments
x |
a matrix of predictors excluding intercept with nobs observations. |
y |
a |
strata , control , rownames , nocenter |
passed to |
weights |
a numeric vector of length nobs of 'prior weights' to be used in the fitting process. |
offset |
a numeric vector of length nobs of of a priori known component to be included in the linear predictor during fitting. |
method |
a character string specifying the method for tie handling.
See |
fast |
a logical which determines how the model is fitted. The default
|
Value
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.