Learn R Programming

OOmisc (version 1.2)

expit: Function to do expit (exp(x)/(1+exp(x))) transformation

Description

Calculates the expit transformation of a given set of values

Usage

expit(x)

Arguments

x
a vector or matrix which contains the values to be transformed

Value

Returns the transformed sample

Details

expit is inverse of logit (log(x/(1-x)))

Examples

Run this code
x<-rnorm(100)
expit(x)

Run the code above in your browser using DataLab