Description Usage Arguments Examples
This function implement a classification model generalizing logistic regression to accommodate more than two classes
1 | multinom_logit(form, data, maxit = 25, tol = 1e-10)
|
form |
A given formula for fitting the regression |
data |
A given dataset to fit the model |
maxit |
Integer maximum number of iterations |
tol |
Numeric tolerance parameter |
1 2 3 4 5 | library(palmerpenguins)
data(penguins)
form = is_gentoo ~ body_mass_g +bill_length_mm
my_penguins<- penguins %>% mutate(is_gentoo = as.numeric(species == "Gentoo")) %>% model.frame(form,.)
multinom_logit(form=form,data=my_penguins)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.