Numerically stable log one-minus inverse logit

log1m_inv_logit(x)

Arguments

x

real number or vector of reals

Value

the logarithm of one minus the inverse logit of x

Examples

log1m_inv_logit(0)
#> [1] -0.6931472