View source: R/stats_functions.R
invprobit | R Documentation |
Calculate the values of the sigmoidal function that is defined by the
cumulative normal distribution function (pnorm
). This
method provides a convenient wrapper for the pnorm
that automatically
handles negative zeta and is more consistent in its naming.
invprobit(x, rho, zeta, log = FALSE, oneminus = FALSE)
x |
numeric vector |
rho |
numeric vector of length 1 or the same length as x. Specifies the inflection point of the inverse probit curve. |
zeta |
numeric vector of length 1 or the same length as x. Specifies the scale of the curve at the inflection point of the inverse probit curve. |
log |
boolean if the log of the result is returned |
oneminus |
boolean if one minus the result is returned |
a numeric vector of length(x)
.
xg <- seq(-5, 5, length.out=101)
plot(xg, invprobit(xg, rho=-2, zeta=-0.3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.