Learn R Programming

basicdrm (version 0.3.2)

evalHillModel: Evaluate a Hill dose response model

Description

Evaluate a Hill dose response model

Usage

evalHillModel(conc, hpar)

Value

A vector of response values the same length as conc

Arguments

conc

A vector of concentrations (including 0 or Inf)

hpar

A four parameter vector specifying the Hill model. The values of the parameter vector are, in order, the dose of median effect (also often referred to as the EC50), the Hill slope, the minimal effect (observed when no drug or dose is present), and the maximal effect (theoretically observed when the drug or dose is infinite).

Examples

Run this code
conc <- c(0,2^(-6:3),Inf)
hpar <- c(1,3,0,100)

response <- evalHillModel(conc, hpar)

Run the code above in your browser using DataLab