Description Usage Arguments Value Further details Examples
View source: R/colley_weight.R
Performs Colley Matrix Ranking Algorithm adapting for time
1 | colley_weight(df, method = "linear", ts = NULL)
|
df |
A winner-loser dataframe There should be four columns. The first two are each competitor in a competition. The third columns should have a 1 if the team in the first column is the winner and a 0 if the team in the second column is the winner. The fourth column is a time unit. |
method |
The method to adjust weights of wins based on time.
Can be |
ts |
The time unit at which the step function goes from weighting wins as 1 to 2. |
A vector of ratings
Method not yet implemented for ties.
1 2 3 4 | colley_weight(bball2, 'linear')
colley_weight(bball2, 'log')
colley_weight(bball2, 'exp')
colley_weight(bball2, 'step', ts=5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.