Skip to Main Content
U.S. Forest Service
Caring for the land and serving people

United States Department of Agriculture

Home > Search > Publication Information

  1. Share via EmailShare on FacebookShare on LinkedInShare on Twitter
    Dislike this pubLike this pub
    Author(s): Elizabeth A. FreemanGretchen Moisen
    Date: 2008
    Source: Journal of Statistical Software. 23(11): 31 p.
    Publication Series: Miscellaneous Publication
    PDF: Download Publication  (485 B)


    The PresenceAbsence package for R provides a set of functions useful when evaluating the results of presence-absence analysis, for example, models of species distribution or the analysis of diagnostic tests. The package provides a toolkit for selecting the optimal threshold for translating a probability surface into presence-absence maps specifically tailored to their intended use. The package includes functions for calculating threshold dependent measures such as confusion matrices, percent correctly classified (PCC), sensitivity, specificity, and Kappa, and produces plots of each measure as the threshold is varied. It also includes functions to plot the Receiver Operator Characteristic (ROC) curve and calculates the associated area under the curve (AUC), a threshold independent measure of model quality. Finally, the package computes optimal thresholds by multiple criteria, and plots these optimized thresholds on the graphs.

    Publication Notes

    • You may send email to to request a hard copy of this publication.
    • (Please specify exactly which publication you are requesting and your mailing address.)
    • We recommend that you also print this page and attach it to the printout of the article, to retain the full citation information.
    • This article was written and prepared by U.S. Government employees on official time, and is therefore in the public domain.


    Freeman, Elizabeth A.; Moisen, Gretchen. 2008. PresenceAbsence: An R package for presence absence analysis. Journal of Statistical Software. 23(11): 31 p.


    binary classification, ROC, AUC, sensitivity, specificity, threshold, species distribution models, diagnostic tests

    Related Search

    XML: View XML
Show More
Show Fewer
Jump to Top of Page