probs_to_odds: Convert probabilities to odds

Description Usage Arguments Value Examples

View source: R/logitfunctions.R

Description

Odds are an alternative means to quantify probabilities of events. If the probability of an event has a value p, the odds corresponding to p is p/(1-p).

Usage

1

Arguments

p

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

Value

A numeric vector of odds, which are values between zero and infinity.

Examples

1
2
p <- c(0.25, 0.5, 0.75)
probs_to_odds(p)

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