calcProb.Rd
Cpp function: Calculate the estimated probability using softmax function (multinomial regression).
calcProb(X, B)
X | a data matrix of input in multinomial regression. |
---|---|
B | coefficients in multinomial regression. |
A matrix of multinomial probability with p_i=exp(X %% B_i)/sum(X %% B)