Learn R Programming

IPMpack (version 2.1)

invLogit: Implements a logistic transform.

Description

Provided a vector or numeric changes it into a vector on 0-1 using the invLogit transform.

Usage

invLogit(x)

Arguments

x
vector of numbers for which the transform is required.

Examples

Run this code
x <- rnorm(100)
plot(sort(x), invLogit(sort(x)), type = "l", xlab = "State x", ylab = 
"Transformed state x", col = "dark gray")

Run the code above in your browser using DataLab