my_multinom: Implement multinomial logistic regression

Description Usage Arguments

View source: R/my_multinom.R

Description

This function implements multinomial logistic regression, generalizing to k classes

Usage

1
my_multinom(X, Y, lr, max_n, tol = 1e-10)

Arguments

X

a model matrix, the X variables as columns

Y

a factor vector, the response variable

lr

the learning rate

max_n

max number of iterations (a positive integer)

tol

the difference threshold for which we will exit the algorithm for iterations less than max_n


kimgannon/bis557 documentation built on Nov. 25, 2020, 7:09 a.m.