colley_weight: Performs Colley Matrix Ranking Algorithm adapting for time

Description Usage Arguments Value Further details Examples

View source: R/colley_weight.R

Description

Performs Colley Matrix Ranking Algorithm adapting for time

Usage

1
colley_weight(df, method = "linear", ts = NULL)

Arguments

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 linear, exp, log or step.

ts

The time unit at which the step function goes from weighting wins as 1 to 2.

Value

A vector of ratings

Further details

Method not yet implemented for ties.

Examples

1
2
3
4

jalapic/ratingsR documentation built on May 18, 2019, 11:18 a.m.