Description Usage Arguments Details Value Warning Author(s) Examples

Functions to take the expit and logit of numerical vectors.

1 | ```
expit(x)
``` |

`x` |
vector of real numbers; for |

`logit`

implements the usual logit function, which is

*logit(x) = log(x/(1-x)),*

and `expit`

its inverse:

*expit(x) = e^x/(1+e^x).*

It is assumed
that `logit(0) = -Inf`

and `logit(1) = Inf`

, and correspondingly
for `expit`

.

A real vector corresponding to the expits or logits of `x`

Choosing very large (positive or negative) values to
apply to `expit`

may result in inaccurate inversion (see example
below).

Robin Evans

1 2 3 4 5 6 |

rje42/rje documentation built on Aug. 15, 2017, 7:43 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.