logit {rando} | R Documentation |
The logit and inverse logit functions
Description
Calculates the logit or the inverse logit of a value
Usage
logit(prob, base = exp(1))
invlogit(alpha, base = exp(1))
Arguments
prob |
vector of probabilities |
base |
base of the logarithmic function to use |
alpha |
vector of values to find the inverse logit of |
Value
A numeric vector
Examples
logit(0.5)
logit(seq(0.01, 0.99, 0.01))
invlogit(-10:10)
[Package rando version 0.2.0 Index]