# logit

From HH v2.3-37
by Richard Heiberger

##### Logistic function and its inverse.

Logistic function and its inverse.

- Keywords
- math

##### Usage

```
logit(p)
antilogit(x)
```

##### Arguments

- p
- Probability value, a vector of numbers between 0 and 1, inclusive.
- x
- Real number, a vector of numbers between
`-Inf`

and`Inf`

.

##### Value

- Vector of real values
`log(p/(1-p))`

for`logit`

. Vector of probabilities`exp(x)/(1+exp(x))`

for`antilogit`

with boundary values of`-Inf`

and`Inf`

for`x`

correctly handled.

##### Examples

```
logit(seq(0,1,.1))
antilogit(logit(seq(0,1,.1)))
```

*Documentation reproduced from package HH, version 2.3-37, License: GPL (>= 2)*

### Community examples

Looks like there are no examples yet.