Learn R Programming

mosaicCore (version 0.9.4.0)

logit: Logit and inverse logit functions

Description

Logit and inverse logit functions

Usage

logit(x)

ilogit(x)

Value

For logit the value is $$log(x/(1 - x))$$

For ilogit the value is $$exp(x)/(1 + exp(x))$$

Arguments

x

a numeric vector

Examples

Run this code
p <- seq(.1, .9, by=.10)
l <- logit(p); l
ilogit(l)
ilogit(l) == p

Run the code above in your browser using DataLab