logit: The logit and inverse logit functions

Description Usage Arguments Value Examples

View source: R/logit.R

Description

Calculates the logit or the inverse logit of a value

Usage

1
2
3
logit(prob, base = exp(1))

invlogit(alpha, base = exp(1))

Arguments

prob

vector of probabilities

base

base of the logarithmic function to use

alpha

vector of values to find the inverse logit of

Value

A numeric vector

Examples

1
2
3
4
logit(0.5)

logit(seq(0.01, 0.99, 0.01))
invlogit(-10:10)

rando documentation built on Feb. 16, 2021, 5:07 p.m.