multiclass_logistic: Multi-Class Model Generalizing Logistic Regression

Description Usage Arguments Value Examples

View source: R/multiclass-logistic.R

Description

This function implement a classification model generalizing logistic regression to accommodate more than two classes.

Usage

1
multiclass_logistic(form, data, maxit)

Arguments

form

a formula with the legal format.

data

a dataframe provided by the user.

maxit

the number of iteration for the second-order gradient descent.

Value

a list including the dependent variable of interest, coefficient estimates, and membership propensities.

Examples

1
2
3
q3.data <- penguinsi
form <- species ~ bill_length_mm + bill_depth_mm
q3_fit <- multiclass_logistic(form, q3.data, maxit = 50)

BillyTian/bis557 documentation built on Dec. 19, 2020, 7:30 a.m.