GLMgradient: GLM Gradient descent with constant step

Description Usage Arguments

View source: R/GLMgradient.R

Description

Fits generalized linear model by gradient descent, maximizing log-likelihood

Usage

1
GLMgradient(X, y, mu_fun, T_fun, lrate = 0.01, maxiter = 10000, tol = 1e-05)

Arguments

X

the design matrix

y

the response variable

mu_fun

function from eta to the expected value

T_fun

the sufficient statistic as a function of y

lrate

the learning rate

maxiter

the maximum iteration number

tol

the numerical tolerance


damingli09/bis557 documentation built on Nov. 21, 2020, 9:11 a.m.