Description Usage Arguments Details Value Author(s) Examples

View source: R/simulationEngines.R

The expit and logit functions are useful shortcuts when using logistic regression models.

1 2 3 |

`x` |
a real number |

`p` |
a number between 0 and 1, i.e. a probability |

The logit function is defined as logit(p) = log(p)/log(1-p) and can also be described as the log odds of a given probability. The expit is the inverse of the logit function and is defined as expit(x) = exp(x)/(1+exp(x)).

A numeric value, possibly vectorized, depending on the input.

Nicholas G. Reich

1 2 3 4 5 6 |

```
[1] 0.1192029
[1] 0
```

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.