logit {givitiR}R Documentation

Logit and logistic functions

Description

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

Usage

logit(p)

logistic(x)

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

logit(0.1)
logit(0.5)
logistic(0)
logistic(logit(0.25))
logit(logistic(2))

[Package givitiR version 1.3 Index]