| edge_calc | R Documentation | 
This function will calculate the edge of a given bet based on your predicted win probability of the bet and the bet's odds.
edge_calc(win_prob, odds, type = "us")
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: 
  | 
edge The edge that you have for the given bet.
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"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.