trps: Computes the rank probability score for a tournament

Description Usage Arguments Value Author(s) Examples

Description

Compute the (weighted) rank probability score for a tournament.

Usage

1
trps(m, outcome, rankweights = 1L)

Arguments

m

An R*T prediction matrix where the R rows represent the ordered ranks and each column is a team. Each column should sum to 1, and each row should sum to the number of teams that can attain a given rank.

outcome

A vector of length T containing the integers 1 to R giving the ranks that were obtained by each of the T teams

rankweights

A vector of length R of rank weights or a single weight which will be reused for all ranks (defaults to 1)

Value

The rank probability score. Zero means a perfect score.

Author(s)

Claus Ekstrom <ekstrom@sund.ku.dk>

Examples

1
2
3
m1 <- matrix(c(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, .5, .5, 0, 0, .5, .5), 4)
m1 # Prediction where certain on the top ranks
trps(m1, c(1, 2, 3, 4)) 

socceR documentation built on July 3, 2019, 5:05 p.m.

Related to trps in socceR...