invertHillModel: Calculates the required doses of a Hill dose response model
Description
This funciton takes one or more desired response values and determines the
doses that will produce the desired effects given a particular Hill dose
response model. This is useful for estimating things like IC50.
Usage
invertHillModel(effect, hpar, invalidNA = FALSE)
Value
A vector of concentrations the same length as effect.
Arguments
effect
A vector of desired response values
hpar
A four parameter vector specifying the Hill model. Parameter
details are found in the documentation for evalHillModel()
invalidNA
Specifies what to do with values that are outside the range
of the given Hill model. If FALSE (the default), values "below" the given
range will be set to zero, and values "above" the given range will be set to
Inf. If TRUE, invalid values will be set to NA.