logit: Logit and logistic functions

Description Usage Arguments Value Examples

Description

logit and logistic implement the logit and logistic transformations, respectively.

Usage

1
2
3

Arguments

p

A numeric vector whose components are numbers between 0 and 1.

x

A numeric vector.

Value

The functions apply the logit and logistic transformation to each element of the vector passed as argument. In particular, logit(p)=ln(p/(1-p)) and logistic(x)=exp(x)/(1+exp(x)).

Examples

1
2
3
4
5
logit(0.1)
logit(0.5)
logistic(0)
logistic(logit(0.25))
logit(logistic(2))

givitiR documentation built on May 2, 2019, 10:58 a.m.