See car::logit for a better implementation.

e_convert_logit(p = NULL, sw_percent = FALSE)

Arguments

p

list of probabilities

sw_percent

T/F input is percent

Value

z list of log(odds ratios) logit-scale values

Examples

p <- seq(0, 1, by = 0.1)
e_convert_logit(p)
#>  [1]       -Inf -2.1972246 -1.3862944 -0.8472979 -0.4054651  0.0000000
#>  [7]  0.4054651  0.8472979  1.3862944  2.1972246        Inf