Transforms probability values to the logit scale using the standard logit formula: \(\text{logit}(p) = \log\left(\frac{p}{1-p}\right)\)

logit(p)

Arguments

p

numeric vector of values in (0,1) (probability scale)

Value

Numeric vector of values on the real line (logit scale)

Details

This function transforms probabilities (0,1) to the logit scale (real line). Values of 0 and 1 will produce -Inf and +Inf respectively. The transformation is used internally in DISC to ensure inbreeding coefficients remain non-negative.

See also