View source: R/model-sigmoid-function.R
sigmoid_hill_to_slope | R Documentation |
The hill
parameter controls the slope at the ac50 (slope
)
but the slope
also depends on the top
and bottom
parameters. This
helper function facilitates computing the slope
from the parameters.
To prove the this function is correct, consider the derivative of the
response of the sigmoid()
function with respect to the
log_dose
:
d(response)/d(log_dose) = hill * log(10) * (top - bottom) * 10 ^ ((ac50 - log_dose) * hill) / ((10 ^ ((ac50 - log_dose) * hill) + 1) ^ 2)
Evaluating this derivative at log_dose == ac50 simplifies the exponents:
slope = hill * log(10) * (top - bottom) / (1 + 1) ^ 2) = hill * log(10) * (top - bottom) / 4
sigmoid_hill_to_slope(hill, top, bottom)
hill |
|
top |
|
bottom |
|
numeric
the slope of the sigmoid()
function at
the ac50.
sigmoid()
sigmoid_slope_to_hill()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.