Description Usage Arguments Value
Bradley-Terry Weighted Likelihood Function with home parameter
1 | B_T_Weighted_home(df, ability, u, i0)
|
df |
Dataframe with 5 columns. First column is the index of the home teams (use numbers to denote teams). Second column is the index of the away teams. Third column is the number of wins of home teams (usually to be 0/1). Fourth column is the number of wins of away teams (usually to be 0/1). Fifth column is the scalar of time when the match is played until now (Time lag). |
ability |
A column vector of teams ability, the last row is the home parameter whose rowname must be "at.home". The row number is consistent with the team's index shown in dataframe. Column name must be "xn". |
u |
The exponential decay rate. |
i0 |
A teams index whose ability will be fixed as 0 (usually the team loss most). |
The estimated abilities.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.