% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dose_response.R
\name{compute_auc}
\alias{compute_auc}
\title{Area under a four-parameter logistic dose-response curve}
\usage{
compute_auc(min_concentration, max_concentration, top, ic50, hill, bottom)
}
\arguments{
\item{min_concentration}{Lower integration limit (minimum tested
concentration).}

\item{max_concentration}{Upper integration limit (maximum tested
concentration).}

\item{top, ic50, hill, bottom}{Four-parameter logistic parameters, as in
\code{\link[=four_pl]{four_pl()}}.}
}
\value{
A single numeric value: the integrated area under the curve. When
integration fails (for example a degenerate fit) \code{NA_real_} is returned
with a warning.
}
\description{
Integrates a fitted \code{\link[=four_pl]{four_pl()}} curve between two concentrations to obtain
the area under the curve (AUC), a robust summary of drug potency used for
between-condition comparisons.
}
\examples{
compute_auc(
  min_concentration = 0.01, max_concentration = 10,
  top = 1, ic50 = 1, hill = 1, bottom = 0
)

}
\seealso{
\code{\link[=four_pl]{four_pl()}}, \code{\link[=fit_dose_response]{fit_dose_response()}}
}
