R/fit_sigmoid.R
fit_sigmoid.Rd
Fits a sigmoidal growth function that returns value based on day after emergence
fit_sigmoid(K, B, M)
upper asymptote
growth rate
time of maximum growth
function that accepts x and returns y based on fitted model
Fits a sigmoidal growth function to produce a value ranging from 0 to K: $$ \frac{K}{1 + e^{-B \cdot \left(x - M \right)}} $$
fit_custom()
my_func <- EndoSim:::fit_sigmoid(1, 0.1, 10) plot(seq(0, 200), my_func(seq(0, 200)), type = "l")