powered by
For \(x=logit(p)\) and \(l=log(s)\), this function returns \(logit(sp)\).
LogitScale(x, l)
\(Logit(p)\) where \(p\) is a vector of probabilities
\(Exp(s)\) where \(0 \leq s \leq 1/\sum p_i\) to produce a well-defined return value.
# NOT RUN { #Calculates logit(xl) for p = (0.4, 0.3): #x = (Logit(0.4), Logit(0.3)) and l = 0.7 LogitScale(x = Logit(c(0.4, 0.3)), l = 0.7) # }
Run the code above in your browser using DataLab