ilogit: Convert logits to probabilities

Description Usage Arguments Value Examples

View source: R/logitfunctions.R

Description

This implements the inverse logit function. This function is also the cumulative distribution function of the logistic distributions, and so is available using the stats::plogis() function.

Usage

1
ilogit(log_odds)

Arguments

log_odds

A numeric vector of positive or negative real numbers that represent log odds, also known as logits.

Value

A vector of probabilities, which are values between 0.0 and 1.0.

Examples

1
2
x <- rnorm(5)
ilogit(x)

mark-andrews/rdemopkg documentation built on Dec. 21, 2021, 2:46 p.m.