View source: R/dose_response.R
dose_response | R Documentation |
Returns a data.frame
with points on the dose response curve for the given
effect scenario.
dose_response(
scenario,
range = c(1, 99),
n = 20,
strategy = c("exponential", "decadic", "vanilla"),
verbose = FALSE,
...
)
scenario |
|
range |
numeric vector specifying the required range of effect levels in percent (%), defaults to |
n |
minimum number of points on the dose response curve |
strategy |
controls how multiplication factors are chosen, |
verbose |
logical, set to |
... |
additional arguments passed on to |
Derives a dose response curve from a scenario. The result will
cover the requested range of effect levels. The tested multiplication factors
can be chosen by different strategies, i.e. a vanilla
approach using a
fixed set of factors, or decadic
and exponential
approaches
employing logarithmic and exponential factor scaling, respectively.
data.frame
with two columns, i.e. factor
and effect
# basic dose response curve
minnow_sd %>% dose_response()
# modify the minimum number of points on the curve
minnow_sd %>% dose_response(n=10)
# select a subset of the effect range
minnow_sd %>% dose_response(range=c(10,20))
# use an alternative strategy for the selection of multiplication factors
minnow_sd %>% dose_response(strategy="decadic")
# provide additional output how multiplication factors were selected
minnow_sd %>% dose_response(verbose=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.