Learn R Programming

extras (version 0.7.3)

odds_ratio2: Odds Ratio2

Description

Calculates the odds ratio for a vector of two probabilities.

Usage

odds_ratio2(x)

Value

A number.

Arguments

x

A numeric vector of length 2.

See Also

Other odds fun2: log_odds_ratio2()

Examples

Run this code
odds_ratio2(c(0.5, 0.9))
odds_ratio2(c(0.9, 0.5))

Run the code above in your browser using DataLab