calc_hfa: Calculate a team's Home Field Advantage

View source: R/calc_hfa.R

calc_hfaR Documentation

Calculate a team's Home Field Advantage

Description

Calculate the percentage of time team A beats team B at home based of the percentage of time team A wins on a neutral field and the league average win percentage at home.

Usage

calc_hfa(win_p_neutral, win_p_leag_hm)

Arguments

win_p_neutral

percentage of time team A beats team B on neutral field.

win_p_leag_hm

league average win percentage for home teams.

Value

numeric scalar between 0 and 1

References

See post by Ganchrow at the SBR forum for details Home field advantage

Examples

calc_hfa(.142, .61)


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