% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dose_response.R
\name{four_pl}
\alias{four_pl}
\title{Four-parameter logistic (4PL) dose-response function}
\usage{
four_pl(x, top, ic50, hill, bottom)
}
\arguments{
\item{x}{Numeric vector of drug concentrations (on the same scale used to fit
the model, typically the raw concentration).}

\item{top}{Response of the upper asymptote (e.g. viability with no drug).}

\item{ic50}{Concentration producing the half-maximal response.}

\item{hill}{Hill slope controlling the steepness of the curve.}

\item{bottom}{Response of the lower asymptote (e.g. viability at saturating
drug).}
}
\value{
A numeric vector of predicted responses, the same length as \code{x}.
}
\description{
Evaluates the classic four-parameter logistic model used to describe
drug dose-response curves in high-throughput screens.
}
\details{
The model is
\deqn{f(x) = \mathrm{bottom} +
  \frac{\mathrm{top} - \mathrm{bottom}}{1 + (x / \mathrm{ic50})^{\mathrm{hill}}}}
}
\examples{
four_pl(x = c(0.01, 0.1, 1, 10), top = 1, ic50 = 1, hill = 1, bottom = 0)

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