multi_logreg | R Documentation |

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

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

`X` |
numeric data matrix |

`y` |
response vector |

`iter` |
max number of iterations, default is 35 |

`tol` |
tolerance, default is 1e-10 |

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

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.