Learn R Programming

extras (version 0.7.3)

log_odds: Log Odds

Description

Calculates the log odds for probabilities.

Usage

log_odds(x)

Value

A numeric object of the the log odds for each probability.

Arguments

x

A numeric object (vector, matrix or array) of probabilities.

See Also

Other odds: inv_odds(), log_odds<-(), log_odds_ratio(), odds(), odds<-(), odds_ratio()

Examples

Run this code
log_odds(c(0, 0.5, 0.9, 1))

Run the code above in your browser using DataLab