fit_cox | R Documentation |
Function that fits Cox proportional hazards models
fit_cox(
x,
y,
strata,
weights,
offset,
control,
method,
rownames,
nocenter,
fast = TRUE
)
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
|
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.