class_logistic: Multi-Class Logistic Regression

Description Usage Arguments Value Examples

View source: R/class_logistic.R

Description

A classification model generalizing logistic regression to accommodate more than two classes.

Usage

1
class_logistic(X, y, maxiter)

Arguments

X

The input design matrix.

y

The input response vector.

maxiter

A number indicating the maximum number iterations.

Value

A list of estimated coefficients and the classification of the observations.

Examples

1
2
3
4
5
data(iris)
iris1 <- iris[sample(150,replace = FALSE),]
iris.X <- as.matrix(iris1[,-5])
iris.y <- iris1$Species
classification <- class_logistic(iris.X, iris.y, maxiter=50)

lyran92/bis557 documentation built on Dec. 21, 2020, 10:03 p.m.