sim_logistic: Closure for simulating logistic curve

View source: R/sim_survey.R

sim_logisticR Documentation

Closure for simulating logistic curve

Description

This closure is useful for simulating q inside the sim_survey function

Usage

sim_logistic(k = 2, x0 = 3, plot = FALSE)

Arguments

k

The steepness of the curve

x0

The x-value of the sigmoid's midpoint

plot

Plot relationship

Value

Returns a function for use in sim_survey.

Examples

logistic_fun <- sim_logistic(k = 2, x0 = 3, plot = TRUE)
logistic_fun(x = 1:10)


SimSurvey documentation built on Sept. 19, 2023, 5:07 p.m.