Learn R Programming

IPMpack (version 1.6)

logit: Implements a logistic transform.

Description

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

Usage

logit(x)

Arguments

x
vector of numbers for which the transform is required.

Examples

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

Run the code above in your browser using DataLab