Learn R Programming

metropolis (version 0.1.8)

expit: Inverse logit transform

Description

Inverse logit transform

Usage

expit(mu)

Arguments

mu

log-odds

Value

returns a scalar or vector the same length as mu with values that are the inverse logit transform of mu

Examples

Run this code
# NOT RUN {
logodds = rnorm(10)
expit(logodds)
logodds = log(1.0)
expit(logodds)
# }

Run the code above in your browser using DataLab