Nothing
youdenindex <-
function(ytest, ytestpred, categ) {
# Number of true positives:
ntp <- sum((ytest==categ) & (ytestpred==categ))
# Number of positives:
np <- sum(ytest==categ)
# Number of true negatives:
ntn <- sum((ytest!=categ) & (ytestpred!=categ))
# Number of negatives:
nn <- sum(ytest!=categ)
# Sensitivity and specificity:
sens <- ntp/np; spec <- ntn/nn
# Return value of Youden's J statistic:
return(sens + spec - 1)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.