logistic_fun | R Documentation |
Logistic function of the form (1 + exp(-β * (x - α)))^(-1)
logistic_fun(x, p)
x |
Vector of values of the explanatory variable. |
p |
Vector of parameters p = c(α, β). |
Probability at each x
.
inv_logistic_fun
library(ggplot2) xseq <- seq(0, 4, .01) yseq <- logistic_fun(xseq, c(2, 4)) curve <- data.frame(x = xseq, y = yseq) ggplot(curve, aes(x = x, y = y)) + geom_line()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.