lgs | R Documentation |
logistic function
lgs(x, a = 1, b = 0, par = NULL, type = "slope_inflection")
x |
numeric vector |
a |
slope parameter |
b |
point of inflection (e.g. a50) |
par |
named vector of parameters a and b. If this is specified it will |
type |
which form of the logistic function to use: "slope_intercept" for the slope-intercept form, "slope_inflection" for the slope-point-of-inflection form. For both forms, a is the slope parameter. override specifications of individual parameters |
Nikolai Klibansky
## Not run:
x <- 1:40
y <- lgs(x=x, a=1, b=5)
plot(x,y)
# Alternative way to specify parameters
y <- lgs(x=x, par=c(x=x, a=1, b=5))
plot(x,y)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.