logistf.fit {nncc} | R Documentation |
Fit a Firth logistic regression model
logistf.fit(
x,
y,
weight = NULL,
offset = NULL,
firth = TRUE,
col.fit = NULL,
init = NULL,
control
)
x |
A model matrix returned by |
y |
The response of a model frame returned by |
weight |
An optional weighting variable for each observation |
offset |
An optional offset variable |
firth |
Use of Firth's penalized maximum likelihood (firth=TRUE, default) or the standard maximum likelihood method (firth=FALSE) |
col.fit |
Numerical vector containing the positions of the variables to fit, if not specified: all variables are taken |
init |
Specifies the initial values of the coefficients for the fitting algorithm |
control |
Controls Newton-Raphson iteration. Default is
|