Applies the logit transformation to a probability value, mapping it from the interval (0, 1) to the real line (-Inf, Inf).
Value
A numeric vector where each value is the logit of the corresponding input probability. The output will be in the range (-Inf, Inf).
Details
The logit function is defined as: $$logit(p) = \log\left(\frac{p}{1 - p}\right)$$ This is commonly used in logistic regression and other models where probabilities need to be mapped to a real-valued scale.
See also
inv_logit for the inverse logit (logistic) function.
