auc | R Documentation |
auc
estimates the AUC of the ROC using a Mann-Whitney U statistic.
Note: this method will exclude any missing data.
auc(obs, pred)
obs |
a vector of observed values which must be 0 for absences and 1 for occurrences |
pred |
a vector of the same length as |
Returns a single value represting the AUC value.
Jeremy VanDerWal (extracted originally from package SDMTools) jjvanderwal@gmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.