Learn R Programming

sparselink (version 1.0.0)

logit: logit function

Description

logit function

Usage

logit(x)

Value

Returns a numeric vector of the transformed values.

Arguments

x

numeric vector with values in unit interval

Examples

Run this code
x <- seq(from=0,to=1,length.out=100)
y <- logit(x=x)
graphics::plot(x=x,y=y,type="l")
graphics::abline(v=0.5,lty=2)
graphics::abline(h=0,lty=2)

Run the code above in your browser using DataLab