colley_spread: Performs Colley Matrix Ranking Algorithm adapting for spread

Description Usage Arguments Value Further details Examples

View source: R/colley_spread.R

Description

Performs Colley Matrix Ranking Algorithm adapting for spread

Usage

1
colley_spread(df, spreadval = NULL, adjval = NULL)

Arguments

df

A winner-loser dataframe There should be four or five columns. The first two are each competitor in a competition. The third columns are the points or goals scored by individual in the first columns. The fourth column are the points/goals scored by the individual in the second column. The optional fifth column is the points/goals differential.

spreadval

The points differential above which to adjust win values

adjval

The constant value to adjust wins by if they are above spreadval

Value

A vector of ratings

Further details

All loss and ties are considered to be worth 0 wins

Examples

1
2
 colley_spread(div3_2012_spread, spreadval=3, adjval=1.5)
 colley_spread(ivyfootball, 10, 1.5)

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