Learn R Programming

SALTSampler (version 1.1.0)

LogitScale: Finds logit(sp)

Description

For \(x=logit(p)\) and \(l=log(s)\), this function returns \(logit(sp)\).

Usage

LogitScale(x, l)

Arguments

x

\(Logit(p)\) where \(p\) is a vector of probabilities

l

\(Exp(s)\) where \(0 \leq s \leq 1/\sum p_i\) to produce a well-defined return value.

Examples

Run this code
# 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