sim_logistic | R Documentation |
This closure is useful for simulating q inside the
sim_survey
function
sim_logistic(k = 2, x0 = 3, plot = FALSE)
k |
The steepness of the curve |
x0 |
The x-value of the sigmoid's midpoint |
plot |
Plot relationship |
Returns a function for use in sim_survey
.
logistic_fun <- sim_logistic(k = 2, x0 = 3, plot = TRUE)
logistic_fun(x = 1:10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.