% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model_evaluation.R
\name{maxent_auc}
\alias{maxent_auc}
\title{Compute AUC (Area Under the ROC Curve)}
\usage{
maxent_auc(presence, absence)
}
\arguments{
\item{presence}{Numeric vector of prediction scores at presence sites.}

\item{absence}{Numeric vector of prediction scores at absence sites.}
}
\value{
A named list with elements:
  \describe{
    \item{auc}{AUC value in [0, 1]}
    \item{max_kappa}{Best Cohen's Kappa found}
    \item{max_kappa_thresh}{Threshold at best Kappa}
  }
}
\description{
Computes the Wilcoxon-Mann-Whitney AUC statistic from prediction scores
at presence and absence sites. Also returns max-Kappa and its threshold.
}
\examples{
result <- maxent_auc(c(0.8, 0.9, 1.0), c(0.1, 0.2, 0.3))
result$auc  # 1.0
}
