invprobit: Inverse probit function

Description Usage Arguments Value Examples

View source: R/stats_functions.R

Description

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.

Usage

1
invprobit(x, rho, zeta, log = FALSE, oneminus = FALSE)

Arguments

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

Value

a numeric vector of length(x).

Examples

1
2
 xg <- seq(-5, 5, length.out=101)
 plot(xg, invprobit(xg, rho=-2, zeta=-0.3))

proDA documentation built on Nov. 8, 2020, 5:01 p.m.