softmax | R Documentation |

Softmax transformation

softmax(x, log = FALSE, ref = TRUE, ...)

`x` |
Input matrix (e.g., linear predictors of multinomial logistic model) |

`log` |
Return on log-scale (default FALSE) |

`ref` |
Add reference level (add 0 column to x) |

`...` |
Additional arguments to lower level functions |

Numeric matrix of dimension n x p, where `n= nrow(x)`

and
`p = ncol(x) + (ref==TRUE)`

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.