softmax {causalQual} | R Documentation |
Softmax function.
Description
Implementation of the softmax function.
Usage
softmax(logits)
Arguments
logits |
An nxM matrix, with n the sample size and M the number of classes of an ordinal outcome. |
Value
The same matrix where each row is normalized so that row sums equal 1; useful to construct conditional probability mass functions.
Author(s)
Riccardo Di Francesco
[Package causalQual version 1.0.0 Index]