edge_calc: Calculate Edge

View source: R/edge_calc.R

edge_calcR Documentation

Calculate Edge

Description

This function will calculate the edge of a given bet based on your predicted win probability of the bet and the bet's odds.

Usage

edge_calc(win_prob, odds, type = "us")

Arguments

win_prob

Your predicted probability for winning the bet (0-1)

odds

The odds for the given bet

type

Type of odds. Possible values are:

  • us, American Odds

  • dec, Decimal Odds

  • frac, Fractional Odds

Value

edge The edge that you have for the given bet.

Examples

edge_calc(0.75, -175, type = "us")
edge_calc(0.75, 1.2855, type = "dec")
edge_calc(0.75, 3/7, type = "frac")
edge_calc(
  win_prob = c(0.6, 0.7, 0.52, 0.6),
  odds = c(-110, -150, 140, 150),
  type = "us"
)


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