AN_EloCalc_season: AN_EloCalc_season

Description Usage Arguments Value

Description

wrapper function that downloads multiple seasons for multiple league from one of the source websites

Usage

1
AN_EloCalc_season(data.m, k = 35, a = 1/1400, factors = c(0.05, -0.6))

Arguments

data.m

matrix (!) that should have columns "Res","RowPrev","Q0","Q1", "HWpct", "Dpct", "AWpct" "RowPrev" should be equal to row_number() if it is the first occurrence "Q0" should be filled for the first occurrence per team "Q1" should be equal to Q0 nrow(data.m) should be even, odd rows for home teams, even rows for away teams

k

k-factor

a

division factor

startingQs

tibble with columns "Team" and "Q0"

b1

home team correction factor

b2

away team correction factor

Value

tibble with columns "Div","Season","Date","HomeTeam","AwayTeam","Res","HWpct","Dpct","AWpct","QH0","QH1","QA0","QA1"


tristanbains/rFootballAnalysis documentation built on May 8, 2019, 9:47 a.m.