calceloss {glmnetr}R Documentation

calculate cross-entry for multinomial outcomes

Description

calculate cross-entry for multinomial outcomes

Usage

calceloss(xx, yy)

Arguments

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

Value

the cross-entropy on a per observation basis


[Package glmnetr version 0.5-2 Index]