Logit Transformation
Description
This function performs a logit transformation on a given variable.
Usage
logit(x, lb = 0, ub = 1)Arguments
x: The variable to be transformed.lb: The lower bound of the variable (default is 0).ub: The upper bound of the variable (default is 1).
Value
The logit-transformed variable.
Examples
logit(0.5) # returns 0
logit(0.25, lb = 0, ub = 0.5) # returns 0
logit(0.75, lb = 0.5, ub = 1) # returns 0