sigmoid | R Documentation |
Functional form for the sigmoid model.
sigmoid(ac50, hill, top, bottom, log_dose)
ac50 |
|
hill |
|
top |
|
bottom |
|
log_dose |
|
numeric
, response given the log_dose
and parameters
sigmoid_model
## Not run:
# Generate an agonist curve with an ec50 of 1 μM with the response
# normalized to [0, 1] over the range 100 nM to 10 μM with half-log steps
data <- data.frame(
log_dose = seq(-7, -5, length.out = 5)) |>
dplyr::mutate(
response = stats::rnorm(
n = length(log_dose),
mean = BayesPharma::sigmoid(
ac50 = -6,
hill = 1,
top = 1,
bottom = 0,
log_dose = log_dose),
sd = .2))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.