logistf.fit {nncc}R Documentation

Fit a Firth logistic regression model

Description

Fit a Firth logistic regression model

Usage

logistf.fit(
  x,
  y,
  weight = NULL,
  offset = NULL,
  firth = TRUE,
  col.fit = NULL,
  init = NULL,
  control
)

Arguments

x

A model matrix returned by model.matrix

y

The response of a model frame returned by model.response

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 control= logistf.control(maxstep, maxit, maxhs, lconv, gconv, xconv)


[Package nncc version 1.0.1 Index]