invLogitAdj {statisfactory} | R Documentation |
Inverse logit is robust to cases that equal 0 or 1
Description
This function is the inverse of logitAdj
. That function calculates the logit of values but is robust to cases where the operand is 0 or 1. The adjusted inverse logit is equal to (base^x + epsilon * base^x - epsilon) / (base^x + 1)
.
Usage
invLogitAdj(x, epsilon = 0.01, base = 10, auto = FALSE)
Arguments
x |
Numeric vector. |
epsilon |
Value or character. If a numeric value (typically ~0.01 or smaller), then this is added/subtracted from |
base |
Base of logarithm. Use |
auto |
If |
Value
Numeric.
See Also
Examples
x <- seq(0, 1, by=0.1)
y <- logitAdj(x)
xx <- invLogitAdj(y, auto = TRUE)