multi_logreg: multi-class logistic regression

View source: R/multi_logreg.R

multi_logregR Documentation

multi-class logistic regression

Description

This is a function taking X, y and fit a multi-class logistic regression with reference to textbook p130

Usage

multi_logreg(X, y, iter = 35, tol = 1e-10)

Arguments

X

numeric data matrix

y

response vector

iter

max number of iterations, default is 35

tol

tolerance, default is 1e-10

Examples

X <- matrix(c(1,2,3,4,5), nrow = 5)
y <- c(0,0,1,1,2)
multi_logreg(X,y)


carolineying/bis557 documentation built on April 17, 2023, 4 a.m.