calceloss {glmnetr} | R Documentation |
calculate cross-entry for multinomial outcomes
calceloss(xx, yy)
xx |
the sigmoid of the link, i.e, the estimated probabilities, i.e. xx = 1/(1+exp(-xb)) |
yy |
the observed data as 0's and 1's |
the cross-entropy on a per observation basis