logistic_reg: Logistic regression

Description Usage Arguments Value

View source: R/lr_funcs.r

Description

Fit a logistic regression model by IRWLS. This is the same method that glm uses when family="binomial".

Usage

1
logistic_reg(X, y, lambda = 0)

Arguments

X

covariate matrix

y

response vector

lambda

[Optional] L2 regularisation parameter, defaults to 0.

r

[Optional] weight vector

Value

b vector of coefficients


ant-stephenson/lhc documentation built on Jan. 28, 2021, 3:47 p.m.