invertHillModel {basicdrm}R Documentation

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)

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.

Value

A vector of concentrations the same length as effect.

Examples

invertHillModel(0.5, c(1,2,0,0.7))

invertHillModel(seq(0.1,0.9,by=0.1), c(0.1,4,0,0.65), invalidNA=TRUE)

[Package basicdrm version 0.3.0 Index]