implied_odds: Probability of Winning Conversion to Odds (American Odds)

View source: R/implied_odds.R

implied_oddsR Documentation

Probability of Winning Conversion to Odds (American Odds)

Description

This function provides the fair odds for a given win probability for a given bet.

Usage

implied_odds(prob, type = "us")

Arguments

prob

Probability of winning a bet

type

Type of odds. Possible values are:

  • all, All types

  • us, American Odds

  • dec, Decimal Odds

  • frac, Fractional Odds

Value

odds American Odds of that bet

Examples

implied_odds(0.4)
implied_odds(0.5238095, type = "all")
implied_odds(c(0.3, 0.2, 0.909, 0.7143), type = "dec")
implied_odds(c(0.3, 0.2, 0.95, 0.7), type = "frac")


papagorgio23/bettoR documentation built on May 24, 2023, 5:01 a.m.