View source: R/regression_models.R
Multinomial regression | R Documentation |
Multinomial regression.
multinom.reg(y, x, tol = 1e-07, maxiters = 50)
y |
The response variable. A numerical or a factor type vector. |
x |
A matrix or a data.frame with the predictor variables. |
tol |
This tolerance value to terminate the Newton-Raphson algorithm. |
maxiters |
The maximum number of iterations Newton-Raphson will perform. |
A list including:
iters |
The number of iterations required by the Newton-Raphson. |
loglik |
The value of the maximised log-likelihood. |
be |
A matrix with the estimated regression coefficients. |
Michail Tsagris
R implementation and documentation: Michail Tsagris <mtsagris@uoc.gr> and Manos Papadakis <papadakm95@gmail.com>.
Bohning, D. (1992). Multinomial logistic regression algorithm. Annals of the Institute of Statistical Mathematics, 44(1): 197-200.
glm_logistic, score.multinomregs logistic_only
y <- iris[, 5]
x <- matrnorm(150, 3)
res <- multinom.reg(y, x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.